diff --git a/README.md b/README.md index 110e576..2db57d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Reset Your IDE Eval Information -1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.2.3-031813.zip). +1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.2.4-4959c6.zip). * Alternative installation method: * Add "Custom Plugin Repository": `https://plugins.zhile.io` manually (`Settings/Preferences` -> `Plugins`) * Search and install plugin: `IDE Eval Reset` diff --git a/build.gradle b/build.gradle index c27e19a..8b81a7f 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'io.zhile.research.intellij' -version '2.2.3' +version '2.2.4' sourceCompatibility = 1.7 targetCompatibility = 1.7 @@ -29,6 +29,8 @@ intellij { patchPluginXml { changeNotes = """
+Release v2.2.4
+  1. fix for 2019.2
 Release v2.2.3
   1. add custom error handler
 Release v2.2.2
diff --git a/src/main/java/io/zhile/research/intellij/ier/listener/AppInitActivity.java b/src/main/java/io/zhile/research/intellij/ier/listener/AppInitActivity.java
new file mode 100644
index 0000000..9fbb0d4
--- /dev/null
+++ b/src/main/java/io/zhile/research/intellij/ier/listener/AppInitActivity.java
@@ -0,0 +1,19 @@
+package io.zhile.research.intellij.ier.listener;
+
+import com.intellij.openapi.actionSystem.ActionManager;
+import com.intellij.openapi.application.ApplicationManager;
+import com.intellij.openapi.application.PreloadingActivity;
+import com.intellij.openapi.progress.ProgressIndicator;
+import io.zhile.research.intellij.ier.helper.Constants;
+import org.jetbrains.annotations.NotNull;
+
+public class AppInitActivity extends PreloadingActivity {
+    public void preload(@NotNull ProgressIndicator indicator) {
+        ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
+            @Override
+            public void run() {
+                ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID);
+            }
+        });
+    }
+}
diff --git a/src/main/java/io/zhile/research/intellij/ier/listener/AppInitListener.java b/src/main/java/io/zhile/research/intellij/ier/listener/AppInitListener.java
deleted file mode 100644
index 5a5b249..0000000
--- a/src/main/java/io/zhile/research/intellij/ier/listener/AppInitListener.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package io.zhile.research.intellij.ier.listener;
-
-import com.intellij.ide.AppLifecycleListener;
-import com.intellij.openapi.actionSystem.ActionManager;
-import com.intellij.openapi.application.ApplicationManager;
-import com.intellij.openapi.project.Project;
-import com.intellij.openapi.util.Ref;
-import io.zhile.research.intellij.ier.helper.Constants;
-import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
-
-public class AppInitListener implements AppLifecycleListener {
-    public void appFrameCreated(String[] commandLineArgs, @NotNull Ref willOpenProject) {
-
-    }
-
-    public void appStarting(@Nullable Project projectFromCommandLine) {
-        ApplicationManager.getApplication().executeOnPooledThread(new Runnable() {
-            @Override
-            public void run() {
-                ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID);
-            }
-        });
-    }
-
-    public void projectFrameClosed() {
-
-    }
-
-    public void projectOpenFailed() {
-
-    }
-
-    public void welcomeScreenDisplayed() {
-
-    }
-
-    public void appClosing() {
-
-    }
-}
diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml
index b2c3d2e..f8fcc73 100644
--- a/src/main/resources/META-INF/plugin.xml
+++ b/src/main/resources/META-INF/plugin.xml
@@ -26,11 +26,10 @@
     
         
-        
     
 
     
         
+        
     
 
\ No newline at end of file