|
|
@ -1,12 +1,11 @@ |
|
|
|
package com.fr.design.share.ui.generate; |
|
|
|
package com.fr.design.share.ui.generate; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.config.MarketConfig; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
import com.fr.design.extra.LoginWebBridge; |
|
|
|
import com.fr.design.extra.LoginWebBridge; |
|
|
|
import com.fr.design.extra.WebViewDlgHelper; |
|
|
|
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.icheckbox.UICheckBox; |
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
@ -18,6 +17,8 @@ import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
|
|
|
import com.fr.design.login.DesignerLoginHelper; |
|
|
|
|
|
|
|
import com.fr.design.login.DesignerLoginSource; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
import com.fr.design.mainframe.share.constants.ComponentType; |
|
|
|
import com.fr.design.mainframe.share.constants.ComponentType; |
|
|
|
import com.fr.design.mainframe.share.constants.ComponentTypes; |
|
|
|
import com.fr.design.mainframe.share.constants.ComponentTypes; |
|
|
@ -43,6 +44,7 @@ import com.fr.stable.ProductConstants; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.collections.combination.Pair; |
|
|
|
import com.fr.stable.collections.combination.Pair; |
|
|
|
import com.fr.stable.pinyin.PinyinHelper; |
|
|
|
import com.fr.stable.pinyin.PinyinHelper; |
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
@ -419,7 +421,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
|
|
|
|
|
|
|
|
final JPanel vendorPane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); |
|
|
|
final JPanel vendorPane = FRGUIPaneFactory.createBoxFlowInnerContainer_S_Pane(); |
|
|
|
|
|
|
|
|
|
|
|
String bbsUsername = MarketConfig.getInstance().getBbsUsername(); |
|
|
|
String bbsUsername = DesignerEnvManager.getEnvManager().getDesignerLoginUsername(); |
|
|
|
if (StringUtils.isEmpty(bbsUsername)) { |
|
|
|
if (StringUtils.isEmpty(bbsUsername)) { |
|
|
|
UILabel unLoginLabel = ShareUIUtils.createHyperlinkLabel(Toolkit.i18nText("Fine-Design_Share_Click_Login")); |
|
|
|
UILabel unLoginLabel = ShareUIUtils.createHyperlinkLabel(Toolkit.i18nText("Fine-Design_Share_Click_Login")); |
|
|
|
|
|
|
|
|
|
|
@ -431,7 +433,7 @@ public class ShareMainPane extends JPanel { |
|
|
|
LoginWebBridge.getHelper().setUILabel(hidden); |
|
|
|
LoginWebBridge.getHelper().setUILabel(hidden); |
|
|
|
Dialog shareDialog = ShareDialogUtils.getInstance().getShareDialog(); |
|
|
|
Dialog shareDialog = ShareDialogUtils.getInstance().getShareDialog(); |
|
|
|
//必须这样创建,不然窗口优先级不对
|
|
|
|
//必须这样创建,不然窗口优先级不对
|
|
|
|
WebViewDlgHelper.createLoginDialog(shareDialog); |
|
|
|
DesignerLoginHelper.showLoginDialog(DesignerLoginSource.NORMAL, new HashMap<>(), shareDialog); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
vendorPane.add(unLoginLabel); |
|
|
|
vendorPane.add(unLoginLabel); |
|
|
|