|
|
@ -96,13 +96,21 @@ public class VersionCheckUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void showVersionCheckDialog(String envName) { |
|
|
|
public static void showVersionCheckDialog(String envName) { |
|
|
|
new SwingWorker<Void, Void>() { |
|
|
|
new SwingWorker<Boolean, Void>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
protected Boolean doInBackground() { |
|
|
|
if (!VersionCheckUtils.versionCheck(envName)) { |
|
|
|
return !VersionCheckUtils.versionCheck(envName); |
|
|
|
showNotificationDialog(envName); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected void done() { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
if (get()) { |
|
|
|
|
|
|
|
showNotificationDialog(envName); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}.execute(); |
|
|
|
}.execute(); |
|
|
|
} |
|
|
|
} |
|
|
|