Browse Source

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

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

14
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));
@ -141,16 +139,20 @@ 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