Browse Source

REPORT-87124 国际化设计器需要对服务平台做下隐藏

security/10.0
Destiny.Lin 2 years ago
parent
commit
8cfb07b0ae
  1. 12
      designer-base/src/main/java/com/fr/design/locale/impl/SupportLocaleImpl.java
  2. 5
      designer-base/src/main/java/com/fr/design/mainframe/toolbar/ToolBarMenuDock.java

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

@ -171,5 +171,17 @@ public enum SupportLocaleImpl implements SupportLocale {
set.add(Locale.TAIWAN);
return set;
}
},
/**
* 帮助-服务平台只针对中国大陆
*/
SERVICE_PLATFORM {
@Override
public Set<Locale> support() {
Set<Locale> set = new HashSet<>();
set.add(Locale.CHINA);
return set;
}
}
}

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

@ -571,9 +571,8 @@ public abstract class ToolBarMenuDock {
}
//服务平台(仅针对中国大陆)
if (GeneralContext.getLocale().equals(Locale.CHINA)) {
shortCuts.add(new ServicePlatformAction());
}
LocaleCenter.buildAction(() -> shortCuts.add(new ServicePlatformAction()), SupportLocaleImpl.SERVICE_PLATFORM);
shortCuts.add(SeparatorDef.DEFAULT);
if (DesignerEnvManager.getEnvManager().isOpenDebug()) {

Loading…
Cancel
Save