|
|
@ -3,7 +3,6 @@ package com.fr.start; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.actions.core.ActionFactory; |
|
|
|
|
|
|
|
import com.fr.design.actions.file.WebPreviewUtils; |
|
|
|
import com.fr.design.actions.file.WebPreviewUtils; |
|
|
|
import com.fr.design.actions.file.newReport.NewPolyReportAction; |
|
|
|
import com.fr.design.actions.file.newReport.NewPolyReportAction; |
|
|
|
import com.fr.design.actions.file.newReport.NewWorkBookAction; |
|
|
|
import com.fr.design.actions.file.newReport.NewWorkBookAction; |
|
|
@ -34,6 +33,8 @@ import com.fr.design.menu.KeySetUtils; |
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
import com.fr.design.menu.SeparatorDef; |
|
|
|
import com.fr.design.menu.SeparatorDef; |
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
|
|
|
|
import com.fr.design.module.ChartEmptyDataStyleAction; |
|
|
|
|
|
|
|
import com.fr.design.module.ChartPreStyleAction; |
|
|
|
import com.fr.design.module.DesignModuleFactory; |
|
|
|
import com.fr.design.module.DesignModuleFactory; |
|
|
|
import com.fr.design.utils.concurrent.ThreadFactoryBuilder; |
|
|
|
import com.fr.design.utils.concurrent.ThreadFactoryBuilder; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
@ -54,23 +55,24 @@ import com.fr.stable.xml.XMLTools; |
|
|
|
import com.fr.start.module.StartupArgs; |
|
|
|
import com.fr.start.module.StartupArgs; |
|
|
|
import com.fr.start.server.ServerTray; |
|
|
|
import com.fr.start.server.ServerTray; |
|
|
|
import com.fr.third.org.apache.commons.lang3.time.StopWatch; |
|
|
|
import com.fr.third.org.apache.commons.lang3.time.StopWatch; |
|
|
|
|
|
|
|
import com.fr.van.chart.map.server.ChartMapEditorAction; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JComponent; |
|
|
|
import javax.swing.JComponent; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.border.MatteBorder; |
|
|
|
import javax.swing.border.MatteBorder; |
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
|
|
|
import java.awt.Insets; |
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.concurrent.LinkedBlockingQueue; |
|
|
|
import java.util.concurrent.LinkedBlockingQueue; |
|
|
|
import java.util.concurrent.ThreadFactory; |
|
|
|
import java.util.concurrent.ThreadFactory; |
|
|
|
import java.util.concurrent.ThreadPoolExecutor; |
|
|
|
import java.util.concurrent.ThreadPoolExecutor; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
|
|
|
import java.awt.Insets; |
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
|
public class MainDesigner extends BaseDesigner { |
|
|
|
public class MainDesigner extends BaseDesigner { |
|
|
|
|
|
|
|
|
|
|
@ -160,15 +162,7 @@ public class MainDesigner extends BaseDesigner { |
|
|
|
|
|
|
|
|
|
|
|
if (WorkContext.getCurrent().isRoot()) { |
|
|
|
if (WorkContext.getCurrent().isRoot()) { |
|
|
|
menuDef.addShortCut(new ServerConfigManagerAction(), new StyleListAction(), new WidgetManagerAction()); |
|
|
|
menuDef.addShortCut(new ServerConfigManagerAction(), new StyleListAction(), new WidgetManagerAction()); |
|
|
|
if (ActionFactory.getChartPreStyleAction() != null) { |
|
|
|
menuDef.addShortCut(new ChartPreStyleAction(), new ChartEmptyDataStyleAction(),new ChartMapEditorAction()); |
|
|
|
menuDef.addShortCut(ActionFactory.getChartPreStyleAction()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ActionFactory.getChartEmptyDataStyleAction() != null) { |
|
|
|
|
|
|
|
menuDef.addShortCut(ActionFactory.getChartEmptyDataStyleAction()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ActionFactory.getChartMapEditorAction() != null) { |
|
|
|
|
|
|
|
menuDef.addShortCut(ActionFactory.getChartMapEditorAction()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
insertMenu(menuDef, MenuHandler.SERVER); |
|
|
|
insertMenu(menuDef, MenuHandler.SERVER); |
|
|
|