update welcome menu for 2020.3.1

Signed-off-by: pengzhile <pengzhile@gmail.com>
pull/8/head
pengzhile 2020-12-29 12:06:42 +08:00
parent b2c88d612f
commit d064971423
4 changed files with 18 additions and 2 deletions

View File

@ -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.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:
* Add "Custom Plugin Repository": `https://plugins.zhile.io` manually (`Settings/Preferences` -> `Plugins`)
* Search and install plugin: `IDE Eval Reset`

View File

@ -4,7 +4,7 @@ plugins {
}
group 'io.zhile.research.intellij'
version '2.1.9'
version '2.1.10'
sourceCompatibility = 1.7
targetCompatibility = 1.7
@ -29,6 +29,8 @@ intellij {
patchPluginXml {
changeNotes """<pre>
Release v2.1.10
1. update welcome menu for 2020.3.1
Release v2.1.9
1. fixed for "rider for unreal engine"
Release v2.1.8

View File

@ -1,8 +1,10 @@
package io.zhile.research.intellij.ier.action;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow;
@ -29,6 +31,11 @@ public class ResetAction extends AnAction implements DumbAware {
public ResetAction() {
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

View File

@ -3,6 +3,8 @@ package io.zhile.research.intellij.ier.listener;
import com.intellij.ide.plugins.DynamicPluginListener;
import com.intellij.ide.plugins.IdeaPluginDescriptor;
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 io.zhile.research.intellij.ier.helper.Constants;
import io.zhile.research.intellij.ier.helper.NotificationHelper;
@ -27,6 +29,11 @@ public class PluginListener implements DynamicPluginListener {
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(AppEventListener.getInstance());
MainToolWindowFactory.unregisterAll();