|
|
@ -2,6 +2,7 @@ package com.fr.design.upm; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.passport.FinePassportManager; |
|
|
|
import com.fr.base.passport.FinePassportManager; |
|
|
|
import com.fr.config.MarketConfig; |
|
|
|
import com.fr.config.MarketConfig; |
|
|
|
|
|
|
|
import com.fr.decision.webservice.v10.plugin.helper.category.impl.UpmResourceLoader; |
|
|
|
import com.fr.design.bridge.exec.JSBridge; |
|
|
|
import com.fr.design.bridge.exec.JSBridge; |
|
|
|
import com.fr.design.bridge.exec.JSCallback; |
|
|
|
import com.fr.design.bridge.exec.JSCallback; |
|
|
|
import com.fr.design.extra.PluginOperateUtils; |
|
|
|
import com.fr.design.extra.PluginOperateUtils; |
|
|
@ -12,6 +13,7 @@ import com.fr.design.extra.exe.GetPluginFromStoreExecutor; |
|
|
|
import com.fr.design.extra.exe.PluginLoginExecutor; |
|
|
|
import com.fr.design.extra.exe.PluginLoginExecutor; |
|
|
|
import com.fr.design.extra.exe.ReadUpdateOnlineExecutor; |
|
|
|
import com.fr.design.extra.exe.ReadUpdateOnlineExecutor; |
|
|
|
import com.fr.design.extra.exe.SearchOnlineExecutor; |
|
|
|
import com.fr.design.extra.exe.SearchOnlineExecutor; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.upm.event.CertificateEvent; |
|
|
|
import com.fr.design.upm.event.CertificateEvent; |
|
|
|
import com.fr.design.upm.event.DownloadEvent; |
|
|
|
import com.fr.design.upm.event.DownloadEvent; |
|
|
|
import com.fr.design.upm.exec.UpmBrowserExecutor; |
|
|
|
import com.fr.design.upm.exec.UpmBrowserExecutor; |
|
|
@ -59,10 +61,20 @@ public class UpmBridge { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void startDownload() { |
|
|
|
public void startDownload() { |
|
|
|
// do something.....
|
|
|
|
try { |
|
|
|
|
|
|
|
UpmResourceLoader.INSTANCE.download(); |
|
|
|
|
|
|
|
UpmResourceLoader.INSTANCE.install(); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
|
|
|
} |
|
|
|
EventDispatcher.fire(DownloadEvent.FINISH, "start"); |
|
|
|
EventDispatcher.fire(DownloadEvent.FINISH, "start"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@JSBridge |
|
|
|
|
|
|
|
public String i18nText(String key) { |
|
|
|
|
|
|
|
return Toolkit.i18nText(key); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JSBridge |
|
|
|
@JSBridge |
|
|
|
public void closeWindow() { |
|
|
|
public void closeWindow() { |
|
|
|
UpmFinder.closeWindow(); |
|
|
|
UpmFinder.closeWindow(); |
|
|
|