fix minor exceptions
This commit is contained in:
parent
2225971c59
commit
602333e880
|
@ -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.13.zip).
|
1. Download and install plugin from [Download Link](https://plugins.zhile.io/files/ide-eval-resetter-2.1.14-d2fedb86.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`
|
||||||
|
@ -8,4 +8,4 @@
|
||||||
3. Click `Reset` -> `Yes` button.
|
3. Click `Reset` -> `Yes` button.
|
||||||
4. Restart your IDE.
|
4. Restart your IDE.
|
||||||
5. Now you have another 30 days eval time :)
|
5. Now you have another 30 days eval time :)
|
||||||
6. For more information, visit [here](https://zhile.io/2020/11/18/jetbrains-eval-reset.html).
|
6. For more information, visit [here](https://zhile.io/2020/11/18/jetbrains-eval-reset-da33a93d.html).
|
||||||
|
|
|
@ -4,7 +4,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group 'io.zhile.research.intellij'
|
group 'io.zhile.research.intellij'
|
||||||
version '2.1.13'
|
version '2.1.14'
|
||||||
|
|
||||||
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.14
|
||||||
|
1. fix minor exceptions
|
||||||
Release v2.1.13
|
Release v2.1.13
|
||||||
1. fix error notification
|
1. fix error notification
|
||||||
Release v2.1.12
|
Release v2.1.12
|
||||||
|
|
|
@ -9,15 +9,16 @@ import java.util.Date;
|
||||||
public class LicenseFileRecord implements EvalRecord {
|
public class LicenseFileRecord implements EvalRecord {
|
||||||
private final String type = "LICENSE";
|
private final String type = "LICENSE";
|
||||||
private final File file;
|
private final File file;
|
||||||
private final Date expireDate;
|
|
||||||
|
private String expireDate;
|
||||||
|
|
||||||
public LicenseFileRecord(File file) {
|
public LicenseFileRecord(File file) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
|
|
||||||
try (DataInputStream dis = new DataInputStream(new FileInputStream(file))) {
|
try (DataInputStream dis = new DataInputStream(new FileInputStream(file))) {
|
||||||
expireDate = new Date(~dis.readLong() + 2592000000L);
|
expireDate = DateTime.DF_DATETIME.format(new Date(~dis.readLong() + 2592000000L));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
expireDate = "ERROR";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +35,6 @@ public class LicenseFileRecord implements EvalRecord {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return type + ": " + file.getName() + ", UNTIL: " + DateTime.DF_DATETIME.format(expireDate);
|
return type + ": " + file.getName() + ", UNTIL: " + expireDate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,14 +15,18 @@ import io.zhile.research.intellij.ier.helper.ResetTimeHelper;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class AppActivationListener implements ApplicationActivationListener, Disposable {
|
public class AppActivationListener implements ApplicationActivationListener, Disposable {
|
||||||
private static AppActivationListener instance = new AppActivationListener();
|
private static AppActivationListener instance;
|
||||||
private static MessageBusConnection connection;
|
private static MessageBusConnection connection;
|
||||||
|
|
||||||
protected AppActivationListener() {
|
protected AppActivationListener() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AppActivationListener getInstance() {
|
public synchronized static AppActivationListener getInstance() {
|
||||||
|
if (instance == null) {
|
||||||
|
instance = new AppActivationListener();
|
||||||
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,14 +13,18 @@ import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
public class AppEventListener implements AppLifecycleListener, Disposable {
|
public class AppEventListener implements AppLifecycleListener, Disposable {
|
||||||
private static AppEventListener instance = new AppEventListener();
|
private static AppEventListener instance;
|
||||||
private static MessageBusConnection connection;
|
private static MessageBusConnection connection;
|
||||||
|
|
||||||
protected AppEventListener() {
|
protected AppEventListener() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AppEventListener getInstance() {
|
public synchronized static AppEventListener getInstance() {
|
||||||
|
if (instance == null) {
|
||||||
|
instance = new AppEventListener();
|
||||||
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,18 @@ import io.zhile.research.intellij.ier.helper.BrokenPlugins;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public class BrokenPluginsListener implements ApplicationActivationListener, Disposable {
|
public class BrokenPluginsListener implements ApplicationActivationListener, Disposable {
|
||||||
private static BrokenPluginsListener instance = new BrokenPluginsListener();
|
private static BrokenPluginsListener instance;
|
||||||
private static MessageBusConnection connection;
|
private static MessageBusConnection connection;
|
||||||
|
|
||||||
protected BrokenPluginsListener() {
|
protected BrokenPluginsListener() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static BrokenPluginsListener getInstance() {
|
public synchronized static BrokenPluginsListener getInstance() {
|
||||||
|
if (instance == null) {
|
||||||
|
instance = new BrokenPluginsListener();
|
||||||
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class PluginListener implements DynamicPluginListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID);
|
ActionManager.getInstance().getAction(Constants.RESET_ACTION_ID);
|
||||||
NotificationHelper.showInfo(null, "Plugin installed successfully! Now enjoy it~<br>For more information, visit <a href='https://zhile.io/2020/11/18/jetbrains-eval-reset.html'>here</a>.");
|
NotificationHelper.showInfo(null, "Plugin installed successfully! Now enjoy it~<br>For more information, visit <a href='https://zhile.io/2020/11/18/jetbrains-eval-reset-da33a93d.html'>here</a>.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
I can reset your IDE eval information.<br>
|
I can reset your IDE eval information.<br>
|
||||||
<em>Click "Help" menu and select "Eval Reset"</em><br><br>
|
<em>Click "Help" menu and select "Eval Reset"</em><br><br>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://zhile.io/2020/11/18/jetbrains-eval-reset.html" target="_blank">Need Help?</a>
|
<a href="https://zhile.io/2020/11/18/jetbrains-eval-reset-da33a93d.html" target="_blank">Need Help?</a>
|
||||||
</p>
|
</p>
|
||||||
]]></description>
|
]]></description>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user