Browse Source

改下名字

master
vito 8 years ago
parent
commit
5e68b887b1
  1. 4
      designer/src/com/fr/design/report/freeze/RepeatAndFreezeSettingPane.java
  2. 4
      designer_base/src/com/fr/design/actions/server/PluginManagerAction.java
  3. 17
      designer_base/src/com/fr/design/extra/WebDialog.java
  4. 4
      designer_base/src/com/fr/start/BaseDesigner.java

4
designer/src/com/fr/design/report/freeze/RepeatAndFreezeSettingPane.java

@ -9,7 +9,7 @@ import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import com.fr.design.dialog.BasicPane;
import com.fr.design.extra.WebDialogFactory;
import com.fr.design.extra.WebDialog;
import com.fr.design.gui.icheckbox.UICheckBox;
import com.fr.design.gui.ilable.ActionLabel;
import com.fr.design.gui.ilable.UILabel;
@ -547,7 +547,7 @@ public class RepeatAndFreezeSettingPane extends BasicPane {
public void actionPerformed(ActionEvent e) {
try {
//Desktop.getDesktop().browse(new URI(url));
new WebDialogFactory().createPluginDialog();
WebDialog.createPluginDialog();
RepeatAndFreezeSettingPane.this.getTopLevelAncestor().setVisible(false);
} catch (Exception exp) {

4
designer_base/src/com/fr/design/actions/server/PluginManagerAction.java

@ -2,7 +2,7 @@ package com.fr.design.actions.server;
import com.fr.base.BaseUtils;
import com.fr.design.actions.UpdateAction;
import com.fr.design.extra.WebDialogFactory;
import com.fr.design.extra.WebDialog;
import com.fr.design.menu.MenuKeySet;
import com.fr.general.Inter;
@ -25,7 +25,7 @@ public class PluginManagerAction extends UpdateAction {
@Override
public void actionPerformed(ActionEvent e) {
new WebDialogFactory().createPluginDialog();
WebDialog.createPluginDialog();
}
public static final MenuKeySet PLUGIN_MANAGER = new MenuKeySet() {

17
designer_base/src/com/fr/design/extra/WebDialogFactory.java → designer_base/src/com/fr/design/extra/WebDialog.java

@ -24,18 +24,13 @@ import java.util.concurrent.ExecutionException;
/**
* Created by vito on 2016/9/28.
*/
public class WebDialogFactory {
public class WebDialog {
private static final String LATEST = "latest";
private static final String SHOP_SCRIPTS = "shop_scripts";
private static final int VERSION_8 = 8;
private static String installHome = StableUtils.getInstallHome();
private String installHome;
public WebDialogFactory() {
this.installHome = StableUtils.getInstallHome();
}
public void createPluginDialog() {
public static void createPluginDialog() {
UIDialog dlg;
if (StableUtils.getMajorJavaVersion() >= VERSION_8) {
String relativePath = "/scripts/store/web/index.html";
@ -84,7 +79,7 @@ public class WebDialogFactory {
}
private Component initTraditionalStore() {
private static Component initTraditionalStore() {
UITabbedPane tabbedPane = new UITabbedPane();
PluginInstalledPane installedPane = new PluginInstalledPane();
tabbedPane.addTab(installedPane.tabTitle(), installedPane);
@ -93,7 +88,7 @@ public class WebDialogFactory {
return tabbedPane;
}
private void downloadShopScripts(final String scriptsId) {
private static void downloadShopScripts(final String scriptsId) {
new SwingWorker<Boolean, Void>() {
@Override
protected Boolean doInBackground() throws Exception {
@ -143,7 +138,7 @@ public class WebDialogFactory {
}.execute();
}
private void updateShopScripts(final String scriptsId) {
private static void updateShopScripts(final String scriptsId) {
new SwingWorker<Void, Void>() {
@Override
protected Void doInBackground() throws Exception {

4
designer_base/src/com/fr/start/BaseDesigner.java

@ -7,7 +7,7 @@ import com.fr.base.FRContext;
import com.fr.design.DesignerEnvManager;
import com.fr.design.ExtraDesignClassManager;
import com.fr.design.RestartHelper;
import com.fr.design.extra.WebDialogFactory;
import com.fr.design.extra.WebDialog;
import com.fr.design.file.HistoryTemplateListPane;
import com.fr.design.file.MutilTempalteTabPane;
import com.fr.design.file.TemplateTreePane;
@ -126,7 +126,7 @@ public abstract class BaseDesigner extends ToolBarMenuDock {
String text = StableUtils.join(plugins, ",") + Inter.getLocText("FR-Designer_Plugin_Should_Update");
int r = JOptionPane.showConfirmDialog(null, text, Inter.getLocText("FR-Designer_Plugin_Should_Update_Title"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);
if (r == JOptionPane.OK_OPTION) {
new WebDialogFactory().createPluginDialog();
WebDialog.createPluginDialog();
}
}
timer.stop();

Loading…
Cancel
Save