Destiny.Lin
2 years ago
8 changed files with 63 additions and 57 deletions
@ -1,26 +0,0 @@
|
||||
package com.fr.design.actions.help.replace; |
||||
|
||||
import com.fr.design.module.DesignModuleFactory; |
||||
import com.fr.log.FineLoggerFactory; |
||||
|
||||
/** |
||||
* 工具类 |
||||
* |
||||
* @author Destiny.Lin |
||||
* @version 11.0 |
||||
* created by Destiny.Lin on 2022-09-27 |
||||
*/ |
||||
public class ITReplaceUtils { |
||||
|
||||
|
||||
/** |
||||
* 进入权限编辑&开发者调试时要关闭面板 |
||||
*/ |
||||
public static void close(){ |
||||
try { |
||||
DesignModuleFactory.getReplacePane().newInstance().close(); |
||||
} catch (Exception e) { |
||||
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,41 @@
|
||||
package com.fr.design.actions.replace.utils; |
||||
|
||||
import com.fr.design.actions.help.replace.ITReplaceHelper; |
||||
import com.fr.design.actions.replace.ui.ITReplaceMainDialog; |
||||
|
||||
/** |
||||
* 操作面板 |
||||
* |
||||
* @author Destiny.Lin |
||||
* @version 11.0 |
||||
* created by Destiny.Lin on 2022-09-27 |
||||
*/ |
||||
public class ReplaceOperator implements ITReplaceHelper { |
||||
|
||||
/** |
||||
* 进入权限编辑状态&开发者调试时关闭面板 |
||||
*/ |
||||
@Override |
||||
public void close(){ |
||||
if (isExisted()){ |
||||
ITReplaceMainDialog.getInstance().dispose(); |
||||
setExisted(false); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 面板是否存在 |
||||
* @return |
||||
*/ |
||||
public boolean isExisted(){ |
||||
return ITReplaceMainDialog.isExisted(); |
||||
} |
||||
|
||||
/** |
||||
* 设置面板存在属性 |
||||
* @param existed |
||||
*/ |
||||
public void setExisted(boolean existed){ |
||||
ITReplaceMainDialog.setExisted(existed); |
||||
} |
||||
} |
Loading…
Reference in new issue