|
|
|
@ -22,6 +22,7 @@ import com.fr.design.mainframe.JTemplate;
|
|
|
|
|
import com.fr.design.mainframe.manager.clip.TemplateTreeClipboard; |
|
|
|
|
import com.fr.design.notification.NotificationCenter; |
|
|
|
|
import com.fr.design.plugin.remind.PluginErrorDesignReminder; |
|
|
|
|
import com.fr.design.ui.util.UIUtil; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.versioncheck.VersionCheckUtils; |
|
|
|
|
import com.fr.env.EnvListPane; |
|
|
|
@ -551,35 +552,37 @@ public class EnvChangeEntrance {
|
|
|
|
|
if (eventPipe != null) { |
|
|
|
|
eventPipe.fire(new CarryMessageEvent(ReportState.STOP.getValue())); |
|
|
|
|
} |
|
|
|
|
final EnvListPane envListPane = new EnvListPane(); |
|
|
|
|
envListPane.populateEnvManager(DesignerEnvManager.getEnvManager().getCurEnvName()); |
|
|
|
|
BasicDialog envListDialog = envListPane.showWindow(SwingUtilities.getWindowAncestor(DesignerContext.getDesignerFrame())); |
|
|
|
|
dialog = envListDialog; |
|
|
|
|
envListDialog.addDialogActionListener(new DialogActionAdapter() { |
|
|
|
|
UIUtil.invokeLaterIfNeeded(() -> { |
|
|
|
|
final EnvListPane envListPane = new EnvListPane(); |
|
|
|
|
envListPane.populateEnvManager(DesignerEnvManager.getEnvManager().getCurEnvName()); |
|
|
|
|
BasicDialog envListDialog = envListPane.showWindow(SwingUtilities.getWindowAncestor(DesignerContext.getDesignerFrame())); |
|
|
|
|
dialog = envListDialog; |
|
|
|
|
envListDialog.addDialogActionListener(new DialogActionAdapter() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doOk() { |
|
|
|
|
FineProcessContext.getParentPipe().fire(new CarryMessageEvent(ReportState.ACTIVE.getValue())); |
|
|
|
|
if (!envListOkAction(envListPane, PopTipStrategy.NOW)) { |
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
} else { |
|
|
|
|
updateNotRememberPwdEnv(); |
|
|
|
|
if (DesignerContext.getDesignerFrame().isVisible()) { |
|
|
|
|
VersionCheckUtils.showVersionCheckDialog(envListPane.getSelectedName()); |
|
|
|
|
@Override |
|
|
|
|
public void doOk() { |
|
|
|
|
FineProcessContext.getParentPipe().fire(new CarryMessageEvent(ReportState.ACTIVE.getValue())); |
|
|
|
|
if (!envListOkAction(envListPane, PopTipStrategy.NOW)) { |
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
} else { |
|
|
|
|
updateNotRememberPwdEnv(); |
|
|
|
|
if (DesignerContext.getDesignerFrame().isVisible()) { |
|
|
|
|
VersionCheckUtils.showVersionCheckDialog(envListPane.getSelectedName()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doCancel() { |
|
|
|
|
dialog = null; |
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
@Override |
|
|
|
|
public void doCancel() { |
|
|
|
|
dialog = null; |
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
if (e != null) { |
|
|
|
|
WorkspaceExceptionHandler.getInstance().handleInStart(e, workspaceInfo); |
|
|
|
|
} |
|
|
|
|
envListDialog.setVisible(true); |
|
|
|
|
}); |
|
|
|
|
if (e != null) { |
|
|
|
|
WorkspaceExceptionHandler.getInstance().handleInStart(e, workspaceInfo); |
|
|
|
|
} |
|
|
|
|
envListDialog.setVisible(true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|