Browse Source

REPORT-60538 英日韩环境未屏蔽在线组件库

bugfix/11.0
方磊 3 years ago
parent
commit
0f4e9ca654
  1. 10
      designer-form/src/main/java/com/fr/design/mainframe/FormWidgetDetailPane.java

10
designer-form/src/main/java/com/fr/design/mainframe/FormWidgetDetailPane.java

@ -1,6 +1,7 @@
package com.fr.design.mainframe;
import com.fr.base.BaseUtils;
import com.fr.design.DesignerEnvManager;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.ibutton.UIHeadGroup;
import com.fr.design.gui.ilable.UILabel;
@ -10,6 +11,7 @@ import com.fr.design.mainframe.reuse.ComponentReuseNotificationInfo;
import com.fr.design.mainframe.share.collect.ComponentCollector;
import com.fr.design.mainframe.share.ui.local.LocalWidgetRepoPane;
import com.fr.design.mainframe.share.ui.online.OnlineWidgetRepoPane;
import com.fr.general.GeneralContext;
import javax.swing.BorderFactory;
import javax.swing.Icon;
@ -23,6 +25,7 @@ import java.awt.Dimension;
import java.awt.FlowLayout;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* Created with IntelliJ IDEA.
@ -173,7 +176,14 @@ public class FormWidgetDetailPane extends FormDockView{
private void initPaneList() {
paneList = new ArrayList<>();
paneList.add(LocalWidgetRepoPane.getInstance());
if (isAddOnlineWidgetRepoPane()) {
paneList.add(OnlineWidgetRepoPane.getInstance());
}
}
private boolean isAddOnlineWidgetRepoPane() {
Locale locale = DesignerEnvManager.getEnvManager().getLanguage();
return locale != null && GeneralContext.isChineseEnv();
}
}

Loading…
Cancel
Save