update welcome menu for 2020.3.1

Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
pengzhile
2020-12-29 12:06:42 +08:00
parent b2c88d612f
commit d064971423
4 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# Reset Your IDE Eval Information # Reset Your IDE Eval Information
1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.1.9.zip). 1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.1.10.zip).
* Alternative installation method: * Alternative installation method:
* Add "Custom Plugin Repository": `https://plugins.zhile.io` manually (`Settings/Preferences` -> `Plugins`) * Add "Custom Plugin Repository": `https://plugins.zhile.io` manually (`Settings/Preferences` -> `Plugins`)
* Search and install plugin: `IDE Eval Reset` * Search and install plugin: `IDE Eval Reset`
+3 -1
View File
@@ -4,7 +4,7 @@ plugins {
} }
group 'io.zhile.research.intellij' group 'io.zhile.research.intellij'
version '2.1.9' version '2.1.10'
sourceCompatibility = 1.7 sourceCompatibility = 1.7
targetCompatibility = 1.7 targetCompatibility = 1.7
@@ -29,6 +29,8 @@ intellij {
patchPluginXml { patchPluginXml {
changeNotes """<pre> changeNotes """<pre>
Release v2.1.10
1. update welcome menu for 2020.3.1
Release v2.1.9 Release v2.1.9
1. fixed for "rider for unreal engine" 1. fixed for "rider for unreal engine"
Release v2.1.8 Release v2.1.8
@@ -1,8 +1,10 @@
package io.zhile.research.intellij.ier.action; package io.zhile.research.intellij.ier.action;
import com.intellij.icons.AllIcons; import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project; import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow; import com.intellij.openapi.wm.ToolWindow;
@@ -29,6 +31,11 @@ public class ResetAction extends AnAction implements DumbAware {
public ResetAction() { public ResetAction() {
super(Constants.ACTION_NAME, "Reset my IDE eval information", AllIcons.General.Reset); super(Constants.ACTION_NAME, "Reset my IDE eval information", AllIcons.General.Reset);
AnAction optionsGroup = ActionManager.getInstance().getAction("WelcomeScreen.Options");
if ((optionsGroup instanceof DefaultActionGroup)) {
((DefaultActionGroup) optionsGroup).add(this);
}
} }
@Override @Override
@@ -3,6 +3,8 @@ package io.zhile.research.intellij.ier.listener;
import com.intellij.ide.plugins.DynamicPluginListener; import com.intellij.ide.plugins.DynamicPluginListener;
import com.intellij.ide.plugins.IdeaPluginDescriptor; import com.intellij.ide.plugins.IdeaPluginDescriptor;
import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.Disposer;
import io.zhile.research.intellij.ier.helper.Constants; import io.zhile.research.intellij.ier.helper.Constants;
import io.zhile.research.intellij.ier.helper.NotificationHelper; import io.zhile.research.intellij.ier.helper.NotificationHelper;
@@ -27,6 +29,11 @@ public class PluginListener implements DynamicPluginListener {
return; return;
} }
AnAction optionsGroup = ActionManager.getInstance().getAction("WelcomeScreen.Options");
if ((optionsGroup instanceof DefaultActionGroup)) {
((DefaultActionGroup) optionsGroup).remove(ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID));
}
Disposer.dispose(AppActivationListener.getInstance()); Disposer.dispose(AppActivationListener.getInstance());
Disposer.dispose(AppEventListener.getInstance()); Disposer.dispose(AppEventListener.getInstance());
MainToolWindowFactory.unregisterAll(); MainToolWindowFactory.unregisterAll();