|
|
|
@ -1,10 +1,13 @@
|
|
|
|
|
package com.fr.design.mainframe.share.ui.online.widgetpackage; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.dialog.FineJOptionPane; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.login.DesignerLoginHelper; |
|
|
|
|
import com.fr.design.login.DesignerLoginSource; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.mainframe.share.ui.base.MouseClickListener; |
|
|
|
|
import com.fr.design.mainframe.share.ui.online.AbstractOnlineWidgetShowPane; |
|
|
|
@ -64,6 +67,11 @@ public class OnlineWidgetPackagesShowPane extends AbstractOnlineWidgetShowPane {
|
|
|
|
|
downloadLabel = createLabel(Toolkit.i18nText("Fine-Design_Share_Download_All_Component"), new MouseClickListener() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
String userName = DesignerEnvManager.getEnvManager().getDesignerLoginUsername(); |
|
|
|
|
if (StringUtils.isEmpty(userName)) { |
|
|
|
|
DesignerLoginHelper.showLoginDialog(DesignerLoginSource.NORMAL); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
String message = Toolkit.i18nText("Fine-Design_Share_Download_All_Component_Message") |
|
|
|
|
+ "\n" |
|
|
|
|
+ Toolkit.i18nText("Fine-Design_Share_Total") |
|
|
|
|