Browse Source

只删除韩文设计器下的社区菜单

master
kerry 8 years ago
parent
commit
609ed362ba
  1. 16
      designer_base/src/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

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

@ -122,8 +122,6 @@ public abstract class ToolBarMenuDock {
////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////
public MenuDef[] menus(final ToolBarMenuDockPlus plus) { public MenuDef[] menus(final ToolBarMenuDockPlus plus) {
Locale locale = FRContext.getLocale();
java.util.List<MenuDef> menuList = new java.util.ArrayList<MenuDef>(); java.util.List<MenuDef> menuList = new java.util.ArrayList<MenuDef>();
// 添加文件菜单 // 添加文件菜单
menuList.add(createFileMenuDef(plus)); menuList.add(createFileMenuDef(plus));
@ -140,17 +138,21 @@ public abstract class ToolBarMenuDock {
// 添加帮助菜单 // 添加帮助菜单
menuList.add(createHelpMenuDef()); menuList.add(createHelpMenuDef());
// 添加社区菜单
Locale [] locales =supportCommunityLocales();
// 添加社区菜单 // 添加社区菜单
addCommunityMenuDef(menuList);
return menuList.toArray(new MenuDef[menuList.size()]);
}
public void addCommunityMenuDef(java.util.List<MenuDef> menuList){
Locale locale = FRContext.getLocale();
Locale [] locales =supportCommunityLocales();
for(int i = 0; i < locales.length; i++) { for(int i = 0; i < locales.length; i++) {
if(locale.equals(locales[i])){ if(locale.equals(locales[i])){
menuList.add(createCommunityMenuDef()); menuList.add(createCommunityMenuDef());
break;
} }
} }
return menuList.toArray(new MenuDef[menuList.size()]);
} }
public Locale[] supportCommunityLocales() { public Locale[] supportCommunityLocales() {

Loading…
Cancel
Save