diff --git a/designer-base/src/com/fr/design/extra/PluginUtils.java b/designer-base/src/com/fr/design/extra/PluginUtils.java index 2c684fad0..781a7167a 100644 --- a/designer-base/src/com/fr/design/extra/PluginUtils.java +++ b/designer-base/src/com/fr/design/extra/PluginUtils.java @@ -109,7 +109,7 @@ public class PluginUtils { private static String getDownloadPath(String id) throws Exception { HashMap map = new HashMap(); map.put("id", id); - HttpClient httpClient = new HttpClient(SiteCenter.getInstance().acquireUrlByKind("shop.plugin.scripts")); + HttpClient httpClient = new HttpClient(SiteCenter.getInstance().acquireUrlByKind("shop.plugin.scripts_10")); httpClient.asGet(); String resText = httpClient.getResponseText(); JSONObject resultJSONObject = new JSONObject(resText); diff --git a/designer-base/src/com/fr/design/extra/WebViewDlgHelper.java b/designer-base/src/com/fr/design/extra/WebViewDlgHelper.java index 0249c0b1e..d63e2075e 100644 --- a/designer-base/src/com/fr/design/extra/WebViewDlgHelper.java +++ b/designer-base/src/com/fr/design/extra/WebViewDlgHelper.java @@ -72,10 +72,12 @@ public class WebViewDlgHelper { if (rv == JOptionPane.OK_OPTION) { downloadShopScripts(SHOP_SCRIPTS); } + return; } String jar_version = PluginStoreConstants.getInstance().getProps(ENV_VERSION, StringUtils.EMPTY); if (ComparatorUtils.equals(jar_version, ProductConstants.VERSION)) { updateShopScripts(SHOP_SCRIPTS); + showPluginDlg(); } else { int rv = JOptionPane.showConfirmDialog( null, @@ -281,7 +283,6 @@ public class WebViewDlgHelper { IOUtils.unzip(new File(StableUtils.pathJoin(PluginConstants.DOWNLOAD_PATH, PluginConstants.TEMP_FILE)), installHome); PluginStoreConstants.refreshProps(); // 下载完刷新一下版本号等 JOptionPane.showMessageDialog(null, Inter.getLocText("FR-Designer-Plugin_Shop_Installed"), Inter.getLocText("FR-Designer_Tooltips"), JOptionPane.INFORMATION_MESSAGE); - showPluginDlg(); } } catch (InterruptedException | ExecutionException e) { FineLoggerFactory.getLogger().error(e.getMessage(), e); @@ -295,7 +296,7 @@ public class WebViewDlgHelper { new SwingWorker() { @Override protected Void doInBackground() throws Exception { - HttpClient httpClient = new HttpClient(SiteCenter.getInstance().acquireUrlByKind("shop.plugin.cv") + "&version=" + PluginStoreConstants.getInstance().getProps("VERSION")); + HttpClient httpClient = new HttpClient(SiteCenter.getInstance().acquireUrlByKind("shop.plugin.cv_10") + "&version=" + PluginStoreConstants.getInstance().getProps("VERSION")); httpClient.asGet(); if (httpClient.getResponseCode() == HttpURLConnection.HTTP_OK) { String text = httpClient.getResponseText(); @@ -314,7 +315,6 @@ public class WebViewDlgHelper { } } } - showPluginDlg(); return null; } }.execute(); diff --git a/designer-chart/src/com/fr/design/chart/series/SeriesCondition/impl/FormHyperlinkNorthPane.java b/designer-chart/src/com/fr/design/chart/series/SeriesCondition/impl/FormHyperlinkNorthPane.java index ebaf84e46..f5f3856de 100644 --- a/designer-chart/src/com/fr/design/chart/series/SeriesCondition/impl/FormHyperlinkNorthPane.java +++ b/designer-chart/src/com/fr/design/chart/series/SeriesCondition/impl/FormHyperlinkNorthPane.java @@ -1,13 +1,6 @@ package com.fr.design.chart.series.SeriesCondition.impl; -import java.awt.BorderLayout; -import java.awt.Component; - -import javax.swing.DefaultListCellRenderer; -import javax.swing.JList; -import javax.swing.JPanel; - import com.fr.design.DesignModelAdapter; import com.fr.design.beans.BasicBeanPane; import com.fr.design.gui.icombobox.UIComboBox; @@ -22,17 +15,26 @@ import com.fr.general.Inter; import com.fr.js.FormHyperlinkProvider; import com.fr.stable.bridge.StableFactory; +import javax.swing.DefaultComboBoxModel; +import javax.swing.DefaultListCellRenderer; +import javax.swing.JPanel; +import java.awt.BorderLayout; +import java.awt.Component; + /** - + * Created with IntelliJ IDEA. - + * User: zx - + * Date: 14-8-6 - + * Time: 下午2:53 - + */ -public class FormHyperlinkNorthPane extends BasicBeanPane { + * + * Created with IntelliJ IDEA. + * + * User: zx + * + * Date: 14-8-6 + * + * Time: 下午2:53 + * + + * + * @author zx + */ +public class FormHyperlinkNorthPane extends BasicBeanPane { private UITextField itemNameTextField; private boolean needRenamePane = false; - private Widget[] formHyperlinkEditors; + private Widget[] formHyperlinkEditors; private UIComboBox targetFrameComboBox; public FormHyperlinkNorthPane(boolean needRenamePane) { @@ -47,21 +49,16 @@ public class FormHyperlinkNorthPane extends BasicBeanPane