Browse Source

KERNEL-594 mime问题

bugfix/10.0
richie 6 years ago
parent
commit
c57c2a9e9d
  1. 3
      designer-base/src/main/java/com/fr/design/upm/UpmBridge.java

3
designer-base/src/main/java/com/fr/design/upm/UpmBridge.java

@ -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");

Loading…
Cancel
Save