|
|
|
@ -528,35 +528,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_HELP); |
|
|
|
|
} |
|
|
|
|
if (AlphaFineConfigManager.isALPHALicAvailable()) { |
|
|
|
|
shortCuts.add(new AlphaFineAction()); |
|
|
|
@ -564,12 +547,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()); |
|
|
|
|