|
|
@ -54,9 +54,7 @@ import com.fr.design.mainframe.ToolBarNewTemplatePane; |
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
import com.fr.design.menu.MenuDef; |
|
|
|
import com.fr.design.menu.SeparatorDef; |
|
|
|
import com.fr.design.menu.SeparatorDef; |
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
import com.fr.design.menu.SnapChatMenuDef; |
|
|
|
|
|
|
|
import com.fr.design.menu.ToolBarDef; |
|
|
|
import com.fr.design.menu.ToolBarDef; |
|
|
|
import com.fr.design.notification.SnapChatAllTypes; |
|
|
|
|
|
|
|
import com.fr.design.os.impl.SupportOSImpl; |
|
|
|
import com.fr.design.os.impl.SupportOSImpl; |
|
|
|
import com.fr.design.remote.action.RemoteDesignAuthManagerAction; |
|
|
|
import com.fr.design.remote.action.RemoteDesignAuthManagerAction; |
|
|
|
import com.fr.design.update.actions.SoftwareUpdateAction; |
|
|
|
import com.fr.design.update.actions.SoftwareUpdateAction; |
|
|
@ -530,35 +528,20 @@ public abstract class ToolBarMenuDock { |
|
|
|
* @return 帮组菜单的子菜单 |
|
|
|
* @return 帮组菜单的子菜单 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public ShortCut[] createHelpShortCuts() { |
|
|
|
public ShortCut[] createHelpShortCuts() { |
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<ShortCut>(); |
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
Locale locale = GeneralContext.getLocale(); |
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new VideoAction()), SupportLocaleImpl.VIDEO); |
|
|
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new TutorialAction()), SupportLocaleImpl.TUTORIAL_HELP); |
|
|
|
@Override |
|
|
|
|
|
|
|
public void execute() { |
|
|
|
|
|
|
|
shortCuts.add(new VideoAction()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, SupportLocaleImpl.VIDEO); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new TechSupportAction()), SupportLocaleImpl.TECH_SUPPORT_HELP); |
|
|
|
@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()) { |
|
|
|
if (WorkContext.getCurrent().isLocal()) { |
|
|
|
shortCuts.add(new WebDemoAction()); |
|
|
|
shortCuts.add(new WebDemoAction()); |
|
|
|
shortCuts.add(new SoftwareUpdateAction()); |
|
|
|
if (!Locale.getDefault().equals(Locale.JAPAN) && !Locale.getDefault().equals(Locale.JAPANESE)) { |
|
|
|
|
|
|
|
LocaleCenter.buildAction(() -> shortCuts.add(new SoftwareUpdateAction()), SupportLocaleImpl.UPDATE_HELP); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (AlphaFineConfigManager.isALPHALicAvailable()) { |
|
|
|
if (AlphaFineConfigManager.isALPHALicAvailable()) { |
|
|
|
shortCuts.add(new AlphaFineAction()); |
|
|
|
shortCuts.add(new AlphaFineAction()); |
|
|
@ -566,12 +549,7 @@ public abstract class ToolBarMenuDock { |
|
|
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
if (DesignerEnvManager.getEnvManager().isOpenDebug()) { |
|
|
|
if (DesignerEnvManager.getEnvManager().isOpenDebug()) { |
|
|
|
OSSupportCenter.buildAction(new OSBasedAction() { |
|
|
|
OSSupportCenter.buildAction(objects -> shortCuts.add(new FineUIAction()), SupportOSImpl.FINEUI); |
|
|
|
@Override |
|
|
|
|
|
|
|
public void execute(Object... objects) { |
|
|
|
|
|
|
|
shortCuts.add(new FineUIAction()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, SupportOSImpl.FINEUI); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
shortCuts.add(new AboutAction()); |
|
|
|
shortCuts.add(new AboutAction()); |
|
|
@ -585,12 +563,12 @@ public abstract class ToolBarMenuDock { |
|
|
|
* @return 社区菜单的子菜单 |
|
|
|
* @return 社区菜单的子菜单 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public ShortCut[] createCommunityShortCuts() { |
|
|
|
public ShortCut[] createCommunityShortCuts() { |
|
|
|
|
|
|
|
|
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<ShortCut>(); |
|
|
|
final java.util.List<ShortCut> shortCuts = new ArrayList<ShortCut>(); |
|
|
|
shortCuts.add(new BBSAction()); |
|
|
|
shortCuts.add(new BBSAction()); |
|
|
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
shortCuts.add(new VideoAction()); |
|
|
|
shortCuts.add(new VideoAction()); |
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -600,7 +578,7 @@ public abstract class ToolBarMenuDock { |
|
|
|
}, SupportLocaleImpl.TUTORIAL_COMMUNITY); |
|
|
|
}, SupportLocaleImpl.TUTORIAL_COMMUNITY); |
|
|
|
shortCuts.add(new QuestionAction()); |
|
|
|
shortCuts.add(new QuestionAction()); |
|
|
|
shortCuts.add(new TechSolutionAction()); |
|
|
|
shortCuts.add(new TechSolutionAction()); |
|
|
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
@ -630,9 +608,9 @@ public abstract class ToolBarMenuDock { |
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
shortCuts.add(new TechSupportAction()); |
|
|
|
} |
|
|
|
} |
|
|
|
}, SupportLocaleImpl.TECH_SUPPORT_COMMUNITY); |
|
|
|
}, SupportLocaleImpl.TECH_SUPPORT_COMMUNITY); |
|
|
|
|
|
|
|
|
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
shortCuts.add(SeparatorDef.DEFAULT); |
|
|
|
|
|
|
|
|
|
|
|
shortCuts.add(new CenterAction()); |
|
|
|
shortCuts.add(new CenterAction()); |
|
|
|
shortCuts.add(new SignAction()); |
|
|
|
shortCuts.add(new SignAction()); |
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
|
LocaleCenter.buildAction(new LocaleAction() { |
|
|
@ -656,10 +634,7 @@ public abstract class ToolBarMenuDock { |
|
|
|
|
|
|
|
|
|
|
|
public MenuDef createCommunityMenuDef() { |
|
|
|
public MenuDef createCommunityMenuDef() { |
|
|
|
|
|
|
|
|
|
|
|
MenuDef menuDef = new SnapChatMenuDef( |
|
|
|
MenuDef menuDef = new MenuDef(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Community"), 'C'); |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Community"), |
|
|
|
|
|
|
|
'C', |
|
|
|
|
|
|
|
SnapChatAllTypes.Menu.BBS); |
|
|
|
|
|
|
|
ShortCut[] otherCommunityShortCuts = createCommunityShortCuts(); |
|
|
|
ShortCut[] otherCommunityShortCuts = createCommunityShortCuts(); |
|
|
|
for (ShortCut shortCut : otherCommunityShortCuts) { |
|
|
|
for (ShortCut shortCut : otherCommunityShortCuts) { |
|
|
|
menuDef.addShortCut(shortCut); |
|
|
|
menuDef.addShortCut(shortCut); |
|
|
|