|
|
@ -133,7 +133,9 @@ public abstract class ToolBarMenuDock { |
|
|
|
menuList.addAll(Arrays.asList(menuDefs)); |
|
|
|
menuList.addAll(Arrays.asList(menuDefs)); |
|
|
|
|
|
|
|
|
|
|
|
// 添加服务器菜单
|
|
|
|
// 添加服务器菜单
|
|
|
|
|
|
|
|
if (FRContext.getCurrentEnv() != null && FRContext.getCurrentEnv().isRoot()) { |
|
|
|
menuList.add(createServerMenuDef(plus)); |
|
|
|
menuList.add(createServerMenuDef(plus)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 添加帮助菜单
|
|
|
|
// 添加帮助菜单
|
|
|
|
menuList.add(createHelpMenuDef()); |
|
|
|
menuList.add(createHelpMenuDef()); |
|
|
@ -268,11 +270,6 @@ public abstract class ToolBarMenuDock { |
|
|
|
protected MenuDef createServerMenuDef(ToolBarMenuDockPlus plus) { |
|
|
|
protected MenuDef createServerMenuDef(ToolBarMenuDockPlus plus) { |
|
|
|
MenuDef menuDef = new MenuDef(Inter.getLocText("FR-Designer_M-Server"), 'S'); |
|
|
|
MenuDef menuDef = new MenuDef(Inter.getLocText("FR-Designer_M-Server"), 'S'); |
|
|
|
|
|
|
|
|
|
|
|
if (FRContext.getCurrentEnv() == null || !FRContext.getCurrentEnv().isRoot()) { |
|
|
|
|
|
|
|
menuDef.addShortCut(new ConnectionListAction()); |
|
|
|
|
|
|
|
return menuDef; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!BaseUtils.isAuthorityEditing()) { |
|
|
|
if (!BaseUtils.isAuthorityEditing()) { |
|
|
|
menuDef.addShortCut( |
|
|
|
menuDef.addShortCut( |
|
|
|
new ConnectionListAction(), |
|
|
|
new ConnectionListAction(), |
|
|
|