@ -6,13 +6,11 @@ import com.fr.design.gui.ibutton.UIHeadGroup;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.locale.impl.ShowOnlineWidgetMark ;
import com.fr.design.mainframe.share.collect.ComponentCollector ;
import com.fr.design.mainframe.share.ComponentShareUtil ;
import com.fr.design.mainframe.share.ComponentShareUtil ;
import com.fr.design.mainframe.share.collect.ComponentCollector ;
import com.fr.design.mainframe.share.ui.local.LocalWidgetRepoPane ;
import com.fr.design.mainframe.share.ui.local.LocalWidgetRepoPane ;
import com.fr.design.mainframe.share.ui.online.OnlineWidgetRepoPane ;
import com.fr.design.mainframe.share.ui.online.OnlineWidgetRepoPane ;
import com.fr.general.locale.LocaleCenter ;
import com.fr.general.locale.LocaleMark ;
import javax.swing.BorderFactory ;
import javax.swing.BorderFactory ;
import javax.swing.Icon ;
import javax.swing.Icon ;
import javax.swing.JPanel ;
import javax.swing.JPanel ;
@ -190,14 +188,9 @@ public class FormWidgetDetailPane extends FormDockView {
private void initPaneList ( ) {
private void initPaneList ( ) {
paneList = new ArrayList < > ( ) ;
paneList = new ArrayList < > ( ) ;
paneList . add ( LocalWidgetRepoPane . getInstance ( ) ) ;
paneList . add ( LocalWidgetRepoPane . getInstance ( ) ) ;
if ( isShowOnlineWidgetRepoPane ( ) ) {
if ( ComponentShareUtil . isShowOnlineWidgetRepoPane ( ) ) {
OnlineWidgetRepoPane . getInstance ( ) . refresh ( ) ;
OnlineWidgetRepoPane . getInstance ( ) . refresh ( ) ;
paneList . add ( OnlineWidgetRepoPane . getInstance ( ) ) ;
paneList . add ( OnlineWidgetRepoPane . getInstance ( ) ) ;
}
}
}
}
private boolean isShowOnlineWidgetRepoPane ( ) {
LocaleMark < Boolean > localeMark = LocaleCenter . getMark ( ShowOnlineWidgetMark . class ) ;
return localeMark . getValue ( ) ;
}
}
}