|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
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; |
|
|
|
@ -25,7 +24,6 @@ import java.awt.Dimension;
|
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Locale; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Created with IntelliJ IDEA. |
|
|
|
@ -176,14 +174,8 @@ public class FormWidgetDetailPane extends FormDockView{
|
|
|
|
|
private void initPaneList() { |
|
|
|
|
paneList = new ArrayList<>(); |
|
|
|
|
paneList.add(LocalWidgetRepoPane.getInstance()); |
|
|
|
|
if (isAddOnlineWidgetRepoPane()) { |
|
|
|
|
if (GeneralContext.isChineseEnv()) { |
|
|
|
|
paneList.add(OnlineWidgetRepoPane.getInstance()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean isAddOnlineWidgetRepoPane() { |
|
|
|
|
Locale locale = DesignerEnvManager.getEnvManager().getLanguage(); |
|
|
|
|
return locale != null && GeneralContext.isChineseEnv(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|