Browse Source

REPORT-419 更新升级在远程设计禁止使用

master
kerry 8 years ago
parent
commit
4b80630c25
  1. 1
      designer_base/src/com/fr/design/fun/MenuHandler.java
  2. 3
      designer_base/src/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

1
designer_base/src/com/fr/design/fun/MenuHandler.java

@ -18,6 +18,7 @@ public interface MenuHandler extends Mutable {
int LAST = -1; int LAST = -1;
int HIDE =-2;
String HELP = "help"; String HELP = "help";
String SERVER = "server"; String SERVER = "server";

3
designer_base/src/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

@ -525,6 +525,9 @@ public abstract class ToolBarMenuDock {
for (MenuHandler handler : target) { for (MenuHandler handler : target) {
int insertPosition = handler.insertPosition(menuDef.getShortCutCount()); int insertPosition = handler.insertPosition(menuDef.getShortCutCount());
if (insertPosition == MenuHandler.HIDE) {
return;
}
ShortCut shortCut = action.methodAction(handler); ShortCut shortCut = action.methodAction(handler);
if (shortCut == null) { if (shortCut == null) {
continue; continue;

Loading…
Cancel
Save