|
|
@ -141,13 +141,27 @@ public abstract class ToolBarMenuDock { |
|
|
|
menuList.add(createHelpMenuDef()); |
|
|
|
menuList.add(createHelpMenuDef()); |
|
|
|
|
|
|
|
|
|
|
|
// 添加社区菜单
|
|
|
|
// 添加社区菜单
|
|
|
|
if(!Locale.KOREA.equals(locale)){ |
|
|
|
Locale [] locales =supportCommunityLocales(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 添加社区菜单
|
|
|
|
|
|
|
|
for(int i = 0; i < locales.length; i++) { |
|
|
|
|
|
|
|
if(locale.equals(locales[i])){ |
|
|
|
menuList.add(createCommunityMenuDef()); |
|
|
|
menuList.add(createCommunityMenuDef()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return menuList.toArray(new MenuDef[menuList.size()]); |
|
|
|
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) { |
|
|
|
public void insertTemplateExtendMenu(ToolBarMenuDockPlus plus, MenuDef[] menuDefs) { |
|
|
|
// 给菜单加插件入口
|
|
|
|
// 给菜单加插件入口
|
|
|
|
for (MenuDef m : menuDefs) { |
|
|
|
for (MenuDef m : menuDefs) { |
|
|
|