fix the pop-up of license window
Signed-off-by: pengzhile <pengzhile@gmail.com>pull/8/head
parent
ffc96d454a
commit
58ad4fbda8
|
@ -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.5.zip).
|
1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.1.6.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`
|
||||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'io.zhile.research.intellij'
|
group 'io.zhile.research.intellij'
|
||||||
version '2.1.5'
|
version '2.1.6'
|
||||||
|
|
||||||
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.6
|
||||||
|
1. fix the pop-up of license window
|
||||||
Release v2.1.5
|
Release v2.1.5
|
||||||
1. fix memory leak
|
1. fix memory leak
|
||||||
Release v2.1.4
|
Release v2.1.4
|
||||||
|
|
|
@ -47,6 +47,22 @@ public class Resetter {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File licenseDir = getLicenseDir();
|
||||||
|
if (licenseDir.exists()) {
|
||||||
|
File[] files = licenseDir.listFiles();
|
||||||
|
if (files == null) {
|
||||||
|
NotificationHelper.showError(null, "List license file failed!");
|
||||||
|
} else {
|
||||||
|
for (File file : files) {
|
||||||
|
if (!file.getName().endsWith(".key") && !file.getName().endsWith(".license")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
list.add(new NormalFileRecord(file));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Element state = PropertyRecord.PROPS.getState();
|
Element state = PropertyRecord.PROPS.getState();
|
||||||
if (state != null) {
|
if (state != null) {
|
||||||
Attribute attrName, attrValue;
|
Attribute attrName, attrValue;
|
||||||
|
@ -171,6 +187,10 @@ public class Resetter {
|
||||||
return new File(configPath, "eval");
|
return new File(configPath, "eval");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static File getLicenseDir() {
|
||||||
|
return new File(PathManager.getConfigPath());
|
||||||
|
}
|
||||||
|
|
||||||
protected static void getAllPrefsKeys(Preferences prefs, List<String> list) throws BackingStoreException {
|
protected static void getAllPrefsKeys(Preferences prefs, List<String> list) throws BackingStoreException {
|
||||||
String[] childrenNames = prefs.childrenNames();
|
String[] childrenNames = prefs.childrenNames();
|
||||||
if (childrenNames.length == 0) {
|
if (childrenNames.length == 0) {
|
||||||
|
|
Loading…
Reference in New Issue