Browse Source

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

master
kerry 8 years ago
parent
commit
8b9f2bc175
  1. 18
      designer_base/src/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

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

@ -141,12 +141,26 @@ public abstract class ToolBarMenuDock {
menuList.add(createHelpMenuDef());
// 添加社区菜单
if(!Locale.KOREA.equals(locale)){
menuList.add(createCommunityMenuDef());
Locale [] locales =supportCommunityLocales();
// 添加社区菜单
for(int i = 0; i < locales.length; i++) {
if(locale.equals(locales[i])){
menuList.add(createCommunityMenuDef());
}
}
return menuList.toArray(new MenuDef[menuList.size()]);
}
public Locale[] supportCommunityLocales() {
return new Locale[]{
Locale.CHINA,
Locale.JAPAN,
Locale.TAIWAN,
Locale.US,
};
}
public void insertTemplateExtendMenu(ToolBarMenuDockPlus plus, MenuDef[] menuDefs) {
// 给菜单加插件入口

Loading…
Cancel
Save