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