|
|
|
@ -13,6 +13,7 @@ import com.fr.form.share.DefaultSharableWidget;
|
|
|
|
|
import com.fr.form.share.Group; |
|
|
|
|
import com.fr.form.share.GroupManege; |
|
|
|
|
import com.fr.form.share.SharableWidgetProvider; |
|
|
|
|
import com.fr.form.share.bean.OnlineShareWidget; |
|
|
|
|
import com.fr.form.share.group.DefaultShareGroupManager; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
@ -54,7 +55,7 @@ public class LocalWidgetUpdater implements Process<Double> {
|
|
|
|
|
return 0 <= processValue && processValue <= 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void updateWidget(String remoteLatestWidgetId, UpdateListener updateListener) { |
|
|
|
|
public void updateWidget(OnlineShareWidget remoteLatestWidget, UpdateListener updateListener) { |
|
|
|
|
if (OnlineWidgetRepoPane.getInstance().isShowPackagePanel()) { |
|
|
|
|
ComponentCollector.getInstance().collectDownloadPktNum(); |
|
|
|
|
} |
|
|
|
@ -77,7 +78,7 @@ public class LocalWidgetUpdater implements Process<Double> {
|
|
|
|
|
} |
|
|
|
|
String filePath; |
|
|
|
|
try { |
|
|
|
|
filePath = DownloadUtils.download(remoteLatestWidgetId, widget.getName() + "." + widget.getId(), LocalWidgetUpdater.this); |
|
|
|
|
filePath = DownloadUtils.download(remoteLatestWidget.getId(), remoteLatestWidget.getFileLoca(), LocalWidgetUpdater.this); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
return false; |
|
|
|
|