|
|
|
@ -530,35 +530,18 @@ public abstract class ToolBarMenuDock {
|
|
|
|
|
* @return 帮组菜单的子菜单 |
|
|
|
|
*/ |
|
|
|
|
public ShortCut[] createHelpShortCuts() { |
|
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<ShortCut>(); |
|
|
|
|
|
|
|
|
|
Locale locale = GeneralContext.getLocale(); |
|
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new VideoAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.VIDEO); |
|
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new VideoAction()), SupportLocaleImpl.VIDEO); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new TutorialAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.TUTORIAL_HELP); |
|
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new TutorialAction()), SupportLocaleImpl.TUTORIAL_HELP); |
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute() { |
|
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportLocaleImpl.TECH_SUPPORT_HELP); |
|
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new TechSupportAction()), SupportLocaleImpl.TECH_SUPPORT_HELP); |
|
|
|
|
|
|
|
|
|
//远程不使用更新升级,产品演示
|
|
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
|
|
shortCuts.add(new WebDemoAction()); |
|
|
|
|
shortCuts.add(new SoftwareUpdateAction()); |
|
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new SoftwareUpdateAction()), SupportLocaleImpl.UPDATE_COMMUNITY); |
|
|
|
|
} |
|
|
|
|
if (AlphaFineConfigManager.isALPHALicAvailable()) { |
|
|
|
|
shortCuts.add(new AlphaFineAction()); |
|
|
|
@ -566,12 +549,7 @@ public abstract class ToolBarMenuDock {
|
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
|
if (DesignerEnvManager.getEnvManager().isOpenDebug()) { |
|
|
|
|
OSSupportCenter.buildAction(new OSBasedAction() { |
|
|
|
|
@Override |
|
|
|
|
public void execute(Object... objects) { |
|
|
|
|
shortCuts.add(new FineUIAction()); |
|
|
|
|
} |
|
|
|
|
}, SupportOSImpl.FINEUI); |
|
|
|
|
OSSupportCenter.buildAction(objects -> shortCuts.add(new FineUIAction()), SupportOSImpl.FINEUI); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
shortCuts.add(new AboutAction()); |
|
|
|
|