|
|
@ -6,6 +6,9 @@ import com.fr.design.actions.UpdateAction; |
|
|
|
import com.fr.design.login.utils.DesignerLoginUtils; |
|
|
|
import com.fr.design.login.utils.DesignerLoginUtils; |
|
|
|
import com.fr.design.os.impl.SupportOSImpl; |
|
|
|
import com.fr.design.os.impl.SupportOSImpl; |
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
@ -21,6 +24,10 @@ public abstract class AbstractDesignerSSO extends UpdateAction { |
|
|
|
public void actionPerformed(ActionEvent event) { |
|
|
|
public void actionPerformed(ActionEvent event) { |
|
|
|
String url = getJumpUrl(); |
|
|
|
String url = getJumpUrl(); |
|
|
|
if (!DesignerLoginUtils.isOnline()) { |
|
|
|
if (!DesignerLoginUtils.isOnline()) { |
|
|
|
|
|
|
|
String message = getOffLineWarnMessage(); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(message)) { |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().warn(message); |
|
|
|
|
|
|
|
} |
|
|
|
BrowseUtils.browser(url); |
|
|
|
BrowseUtils.browser(url); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -47,4 +54,8 @@ public abstract class AbstractDesignerSSO extends UpdateAction { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public abstract String getJumpUrl(); |
|
|
|
public abstract String getJumpUrl(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getOffLineWarnMessage() { |
|
|
|
|
|
|
|
return StringUtils.EMPTY; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|