|
|
|
@ -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(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|