|
|
|
@ -81,7 +81,7 @@ public class UpmBridge {
|
|
|
|
|
new SwingWorker<Void, Void>(){ |
|
|
|
|
@Override |
|
|
|
|
protected Void doInBackground() throws Exception { |
|
|
|
|
callback.invoke(window, Toolkit.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download_Start")); |
|
|
|
|
callback.invoke(window, "start", Toolkit.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download_Start")); |
|
|
|
|
UpmResourceLoader.INSTANCE.download(); |
|
|
|
|
UpmResourceLoader.INSTANCE.install(); |
|
|
|
|
return null; |
|
|
|
@ -94,6 +94,7 @@ public class UpmBridge {
|
|
|
|
|
callback.invoke(window, "success", Toolkit.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download_Success")); |
|
|
|
|
EventDispatcher.fire(DownloadEvent.SUCCESS, "success"); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
callback.invoke(window, "error", Toolkit.i18nText("Fine-Design_Basic_Update_Plugin_Manager_Download_Error")); |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
EventDispatcher.fire(DownloadEvent.ERROR, "error"); |
|
|
|
|