|
|
@ -87,6 +87,7 @@ public class UserInfoLabel extends UILabel{ |
|
|
|
LoginCheckContext.addLoginCheckListener(new LoginCheckListener() { |
|
|
|
LoginCheckContext.addLoginCheckListener(new LoginCheckListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void loginChecked() { |
|
|
|
public void loginChecked() { |
|
|
|
|
|
|
|
/* |
|
|
|
if (bbsLoginDialog == null) { |
|
|
|
if (bbsLoginDialog == null) { |
|
|
|
bbsLoginDialog = new BBSLoginDialog(DesignerContext.getDesignerFrame(), UserInfoLabel.this); |
|
|
|
bbsLoginDialog = new BBSLoginDialog(DesignerContext.getDesignerFrame(), UserInfoLabel.this); |
|
|
|
} |
|
|
|
} |
|
|
@ -94,6 +95,7 @@ public class UserInfoLabel extends UILabel{ |
|
|
|
bbsLoginDialog.showTipForDownloadPluginWithoutLogin(); |
|
|
|
bbsLoginDialog.showTipForDownloadPluginWithoutLogin(); |
|
|
|
bbsLoginDialog.setModal(true); |
|
|
|
bbsLoginDialog.setModal(true); |
|
|
|
bbsLoginDialog.showWindow(); |
|
|
|
bbsLoginDialog.showWindow(); |
|
|
|
|
|
|
|
*/ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -282,7 +284,11 @@ public class UserInfoLabel extends UILabel{ |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
if(StringUtils.isNotEmpty(userName)){ |
|
|
|
if(StringUtils.isNotEmpty(userName)){ |
|
|
|
try { |
|
|
|
try { |
|
|
|
Desktop.getDesktop().browse(new URI(SiteCenter.getInstance().acquireUrlByKind("bbs.default"))); |
|
|
|
String loginUrl = SiteCenter.getInstance().acquireUrlByKind("bbs.default") + |
|
|
|
|
|
|
|
"&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=" + |
|
|
|
|
|
|
|
"&username=" + DesignerEnvManager.getEnvManager().getBBSName() + |
|
|
|
|
|
|
|
"&password=" + DesignerEnvManager.getEnvManager().getBBSPassword(); |
|
|
|
|
|
|
|
Desktop.getDesktop().browse(new URI(loginUrl)); |
|
|
|
} catch (Exception exp) { |
|
|
|
} catch (Exception exp) { |
|
|
|
FRContext.getLogger().info(exp.getMessage()); |
|
|
|
FRContext.getLogger().info(exp.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|