File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
src/main/java/com/king/java/field/plugin/component Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pluginVersion = 1.0.0
99# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010# for insight into build numbers and IntelliJ Platform versions.
1111pluginSinceBuild = 211
12- pluginUntilBuild = 213 .*
12+ pluginUntilBuild = 222 .*
1313
1414# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
1515platformType = IC
Original file line number Diff line number Diff line change 1515 */
1616package com .king .java .field .plugin .component ;
1717
18- import com .intellij .openapi .components .PersistentStateComponent ;
19- import com .intellij .openapi .components .ServiceManager ;
20- import com .intellij .openapi .components .State ;
21- import com .intellij .openapi .components .Storage ;
18+ import com .intellij .openapi .application .ApplicationManager ;
19+ import com .intellij .openapi .components .*;
2220import com .intellij .util .xmlb .XmlSerializerUtil ;
2321import com .king .java .field .plugin .entity .FieldParseConfig ;
2422import org .jetbrains .annotations .NotNull ;
@@ -33,7 +31,7 @@ public class ConfigComponent implements PersistentStateComponent<ConfigComponent
3331 private FieldParseConfig fieldParseConfig ;
3432
3533 public static ConfigComponent getInstance () {
36- return ServiceManager .getService (ConfigComponent .class );
34+ return ApplicationManager . getApplication () .getService (ConfigComponent .class );
3735 }
3836
3937 @ Override
You can’t perform that action at this time.
0 commit comments