add support for platform version 2021.2
This commit is contained in:
parent
a9fac171c6
commit
5a5fa2cfd7
@ -6,6 +6,9 @@
|
|||||||
### Added
|
### Added
|
||||||
- Support for IntelliJ 2021.2
|
- Support for IntelliJ 2021.2
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Replace deprecated api methods
|
||||||
|
|
||||||
## [1.4.0]
|
## [1.4.0]
|
||||||
### THANKS FOR OVER 1000 DOWNLOADS SO FAR!
|
### THANKS FOR OVER 1000 DOWNLOADS SO FAR!
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package de.marhali.easyi18n.service;
|
package de.marhali.easyi18n.service;
|
||||||
|
|
||||||
import com.intellij.openapi.components.PersistentStateComponent;
|
import com.intellij.openapi.components.PersistentStateComponent;
|
||||||
import com.intellij.openapi.components.ServiceManager;
|
|
||||||
import com.intellij.openapi.components.State;
|
import com.intellij.openapi.components.State;
|
||||||
import com.intellij.openapi.project.Project;
|
import com.intellij.openapi.project.Project;
|
||||||
|
|
||||||
|
import com.intellij.util.xmlb.XmlSerializerUtil;
|
||||||
import de.marhali.easyi18n.model.SettingsState;
|
import de.marhali.easyi18n.model.SettingsState;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
@ -17,8 +17,7 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
public class SettingsService implements PersistentStateComponent<SettingsState> {
|
public class SettingsService implements PersistentStateComponent<SettingsState> {
|
||||||
|
|
||||||
public static SettingsService getInstance(Project project) {
|
public static SettingsService getInstance(Project project) {
|
||||||
ServiceManager.getService(project, SettingsService.class).initializeComponent();
|
return project.getService(SettingsService.class);
|
||||||
return ServiceManager.getService(project, SettingsService.class);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private SettingsState state;
|
private SettingsState state;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user