Browse Source

REPORT-35463 调整帮助文档菜单项在帮助菜单和社区菜单的情况

feature/big-screen
Yuan.Wang 4 years ago
parent
commit
e88620b32e
  1. 10
      designer-base/src/main/java/com/fr/design/locale/impl/SupportLocaleImpl.java
  2. 12
      designer-base/src/main/java/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

10
designer-base/src/main/java/com/fr/design/locale/impl/SupportLocaleImpl.java

@ -138,8 +138,9 @@ public enum SupportLocaleImpl implements SupportLocale {
@Override @Override
public Set<Locale> support() { public Set<Locale> support() {
Set<Locale> set = new HashSet<Locale>(); Set<Locale> set = new HashSet<Locale>();
set.add(Locale.CHINA); set.add(Locale.US);
set.add(Locale.TAIWAN); set.add(Locale.KOREA);
set.add(Locale.JAPAN);
return set; return set;
} }
}, },
@ -151,9 +152,8 @@ public enum SupportLocaleImpl implements SupportLocale {
@Override @Override
public Set<Locale> support() { public Set<Locale> support() {
Set<Locale> set = new HashSet<Locale>(); Set<Locale> set = new HashSet<Locale>();
set.add(Locale.US); set.add(Locale.CHINA);
set.add(Locale.KOREA); set.add(Locale.TAIWAN);
set.add(Locale.JAPAN);
return set; return set;
} }
} }

12
designer-base/src/main/java/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

@ -592,7 +592,12 @@ public abstract class ToolBarMenuDock {
shortCuts.add(SeparatorDef.DEFAULT); shortCuts.add(SeparatorDef.DEFAULT);
shortCuts.add(new VideoAction()); shortCuts.add(new VideoAction());
LocaleCenter.buildAction(new LocaleAction() {
@Override
public void execute() {
shortCuts.add(new TutorialAction()); shortCuts.add(new TutorialAction());
}
}, SupportLocaleImpl.TUTORIAL_COMMUNITY);
shortCuts.add(new QuestionAction()); shortCuts.add(new QuestionAction());
shortCuts.add(new TechSolutionAction()); shortCuts.add(new TechSolutionAction());
@ -626,13 +631,6 @@ public abstract class ToolBarMenuDock {
} }
}, SupportLocaleImpl.TECH_SUPPORT_COMMUNITY); }, SupportLocaleImpl.TECH_SUPPORT_COMMUNITY);
LocaleCenter.buildAction(new LocaleAction() {
@Override
public void execute() {
shortCuts.add(new TutorialAction());
}
}, SupportLocaleImpl.TUTORIAL_COMMUNITY);
shortCuts.add(SeparatorDef.DEFAULT); shortCuts.add(SeparatorDef.DEFAULT);
shortCuts.add(new CenterAction()); shortCuts.add(new CenterAction());

Loading…
Cancel
Save