|
|
|
@ -2,7 +2,7 @@ package com.fr.design.mainframe.alphafine.action;
|
|
|
|
|
|
|
|
|
|
import com.fr.design.mainframe.alphafine.model.TemplateResourceDetail; |
|
|
|
|
import com.fr.design.mainframe.alphafine.search.helper.FineMarketClientHelper; |
|
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
@ -11,6 +11,8 @@ import java.awt.event.ActionListener;
|
|
|
|
|
* alphaFine - 模板资源 - 二级界面 - 开始使用按钮的绑定事件 |
|
|
|
|
* |
|
|
|
|
* 点击后跳转至帆软市场下载对应模板资源 |
|
|
|
|
* |
|
|
|
|
* TODO:可以参考mini组件商城的下载@ComponentsPackageInstallation#install |
|
|
|
|
* */ |
|
|
|
|
public class StartUseAction implements ActionListener { |
|
|
|
|
|
|
|
|
@ -22,11 +24,6 @@ public class StartUseAction implements ActionListener {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
String url = FineMarketClientHelper.getInstance().getResourceDownloadUrl(resourceDetail.getRoot()); |
|
|
|
|
if (url == null) { |
|
|
|
|
// 如果获取失败,跳转到所有模板页面
|
|
|
|
|
url = FineMarketClientHelper.getInstance().getFineMarketTemplateUrl(); |
|
|
|
|
} |
|
|
|
|
BrowseUtils.browser(url); |
|
|
|
|
FineMarketClientHelper.getInstance().openBrowserAndDownload(resourceDetail.getRoot()); |
|
|
|
|
} |
|
|
|
|
} |