|
|
@ -28,6 +28,7 @@ import com.fr.design.actions.server.PlatformManagerAction; |
|
|
|
import com.fr.design.actions.server.PluginManagerAction; |
|
|
|
import com.fr.design.actions.server.PluginManagerAction; |
|
|
|
import com.fr.design.file.NewTemplatePane; |
|
|
|
import com.fr.design.file.NewTemplatePane; |
|
|
|
import com.fr.design.fun.MenuHandler; |
|
|
|
import com.fr.design.fun.MenuHandler; |
|
|
|
|
|
|
|
import com.fr.design.fun.TableDataPaneProcessor; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.imenu.UIMenu; |
|
|
|
import com.fr.design.gui.imenu.UIMenu; |
|
|
@ -263,7 +264,7 @@ public abstract class ToolBarMenuDock { |
|
|
|
if (!BaseUtils.isAuthorityEditing()) { |
|
|
|
if (!BaseUtils.isAuthorityEditing()) { |
|
|
|
menuDef.addShortCut( |
|
|
|
menuDef.addShortCut( |
|
|
|
new ConnectionListAction(), |
|
|
|
new ConnectionListAction(), |
|
|
|
new GlobalTableDataAction() |
|
|
|
createGlobalTDAction() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -288,6 +289,11 @@ public abstract class ToolBarMenuDock { |
|
|
|
return menuDef; |
|
|
|
return menuDef; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ShortCut createGlobalTDAction() { |
|
|
|
|
|
|
|
TableDataPaneProcessor processor = ExtraDesignClassManager.getInstance().getTableDataPaneProcessor(); |
|
|
|
|
|
|
|
return processor == null ? new GlobalTableDataAction() : processor.createServerTDAction(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean shouldShowPlugin() { |
|
|
|
private boolean shouldShowPlugin() { |
|
|
|
return FRContext.isChineseEnv() || ComparatorUtils.equals(GeneralContext.getLocale(), Locale.TAIWAN); |
|
|
|
return FRContext.isChineseEnv() || ComparatorUtils.equals(GeneralContext.getLocale(), Locale.TAIWAN); |
|
|
|
} |
|
|
|
} |
|
|
|