|
|
|
@ -9,7 +9,17 @@ import com.fr.design.DesignState;
|
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
|
import com.fr.design.actions.community.*; |
|
|
|
|
import com.fr.design.actions.community.BBSAction; |
|
|
|
|
import com.fr.design.actions.community.BugAction; |
|
|
|
|
import com.fr.design.actions.community.BugNeedAction; |
|
|
|
|
import com.fr.design.actions.community.CenterAction; |
|
|
|
|
import com.fr.design.actions.community.FacebookFansAction; |
|
|
|
|
import com.fr.design.actions.community.NeedAction; |
|
|
|
|
import com.fr.design.actions.community.QuestionAction; |
|
|
|
|
import com.fr.design.actions.community.SignAction; |
|
|
|
|
import com.fr.design.actions.community.TechSolutionAction; |
|
|
|
|
import com.fr.design.actions.community.TechSupportAction; |
|
|
|
|
import com.fr.design.actions.community.VideoAction; |
|
|
|
|
import com.fr.design.actions.file.CloseCurrentTemplateAction; |
|
|
|
|
import com.fr.design.actions.file.ExitDesignerAction; |
|
|
|
|
import com.fr.design.actions.file.OpenRecentReportMenuDef; |
|
|
|
@ -523,15 +533,28 @@ public abstract class ToolBarMenuDock {
|
|
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<ShortCut>(); |
|
|
|
|
|
|
|
|
|
Locale locale = GeneralContext.getLocale(); |
|
|
|
|
// 英文,把Video和技术支持放到 Help 下面
|
|
|
|
|
if (locale.equals(Locale.US)) { |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new VideoAction()); |
|
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
|
} |
|
|
|
|
// 英文、韩文、日文,把帮助文档放到 Help 下面
|
|
|
|
|
if (locale.equals(Locale.US) || locale.equals(Locale.KOREA) || locale.equals(Locale.JAPAN)) { |
|
|
|
|
}, SupportLocaleImpl.VIDEO); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new TutorialAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.TUTORIAL_HELP); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.TECH_SUPPORT_HELP); |
|
|
|
|
|
|
|
|
|
//远程不使用更新升级,产品演示
|
|
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
|
|
shortCuts.add(new WebDemoAction()); |
|
|
|
@ -575,14 +598,40 @@ public abstract class ToolBarMenuDock {
|
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
|
|
|
|
|
|
//台湾,将BUG和需求合并成一个,同时新增技术支持
|
|
|
|
|
if (GeneralContext.getLocale().equals(Locale.TAIWAN)) { |
|
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
|
shortCuts.add(new BugNeedAction()); |
|
|
|
|
} else { |
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new BugAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.BUG); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new NeedAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.NEED); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new BugNeedAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.BUG_AND_NEED); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.TECH_SUPPORT_COMMUNITY); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new TutorialAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.TUTORIAL_COMMUNITY); |
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
|
|
|
|
|
|