Browse Source
* commit 'e95dfc7c7878c8f8c26a5b980e226580f7c780e8': REPORT-98345 版本管理三期 icon读取报错 REPORT-100846 版本中心和版本详情都没有搜索弹窗 REPORT-98345 版本管理三期 表头支持排序 REPORT-100518 无磁盘写入权限,版本迁移无异常提示 REPORT-100284 提示历史数据弹窗,提示文案和交互不符 REPORT-100527 中断迁移没有异常提示 REPORT-100757 未启动内置服务器,自动清理配置没有灰化 & REPORT-100070 新版版本管理交互和交互文档不一致 REPORT-100545 迁移完成直接进入新版版本管理,会有存储优化选项 REPORT-100167 【版本管理二期】自动清理配置项保存不生效 Revert "REPORT-91839 模板版本管理二期 bug修复" REPORT-91839 模板版本管理二期 bug修复bugfix/11.0
superman
1 year ago
9 changed files with 153 additions and 31 deletions
@ -0,0 +1,54 @@
|
||||
package com.fr.design.mainframe.vcs.ui; |
||||
|
||||
import com.fr.design.dialog.FineJOptionPane; |
||||
import com.fr.design.i18n.Toolkit; |
||||
import com.fr.design.mainframe.DesignerContext; |
||||
import com.fr.workspace.server.vcs.v2.move.VcsMoveService; |
||||
|
||||
import javax.swing.JOptionPane; |
||||
|
||||
/** |
||||
* 版本管理迁移检查 |
||||
* |
||||
* @author Destiny.Lin |
||||
* @since 11.0 |
||||
* Created on 2023/7/18 |
||||
*/ |
||||
public class VcsMovingExitOption { |
||||
|
||||
|
||||
/** |
||||
* 关闭前的检查 |
||||
* |
||||
* @return |
||||
*/ |
||||
public static boolean ShowDialogAndConfirmExit() { |
||||
return showDialogAndChoose(Toolkit.i18nText("Fine-Design_Vcs_Close_Tips")); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 切换环境前的检查 |
||||
* |
||||
* @return |
||||
*/ |
||||
public static boolean ShowDialogAndConfirmSwitch() { |
||||
return showDialogAndChoose(Toolkit.i18nText("Fine-Design_Vcs_Switch_Tips")); |
||||
} |
||||
|
||||
private static boolean showDialogAndChoose(String msg) { |
||||
if (VcsMoveService.getInstance().isMoving()) { |
||||
int result = FineJOptionPane.showConfirmDialog( |
||||
DesignerContext.getDesignerFrame(), |
||||
msg, |
||||
Toolkit.i18nText("Fine-Design_Basic_Tool_Tips"), |
||||
FineJOptionPane.YES_NO_OPTION |
||||
); |
||||
return result == JOptionPane.YES_OPTION; |
||||
} |
||||
return true; |
||||
} |
||||
|
||||
|
||||
|
||||
} |
Loading…
Reference in new issue