Browse Source

REPORT-92308 版本管理可用性判断逻辑适配新模式 - 代码格式

release/11.0
loy 2 years ago
parent
commit
204e83c900
  1. 8
      designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

8
designer-base/src/main/java/com/fr/design/mainframe/vcs/common/VcsHelper.java

@ -61,18 +61,18 @@ public class VcsHelper implements JTemplateActionListener {
private final static String SERVICE_NAME_MOVE = "moveVcs";
private static final VcsHelper INSTANCE = new VcsHelper();
private volatile boolean isLegacyMode;
private volatile boolean legacyMode;
public static VcsHelper getInstance() {
return INSTANCE;
}
private VcsHelper() {
isLegacyMode = WorkContext.getCurrent().get(VcsOperator.class).isLegacyMode();
legacyMode = WorkContext.getCurrent().get(VcsOperator.class).isLegacyMode();
EventDispatcher.listen(WorkspaceEvent.AfterSwitch, new Listener<Workspace>() {
@Override
public void on(Event event, Workspace param) {
isLegacyMode = WorkContext.getCurrent().get(VcsOperator.class).isLegacyMode();
legacyMode = WorkContext.getCurrent().get(VcsOperator.class).isLegacyMode();
}
});
}
@ -209,7 +209,7 @@ public class VcsHelper implements JTemplateActionListener {
* @return 是否为老模式
*/
public boolean isLegacyMode() {
return isLegacyMode;
return legacyMode;
}
@Override

Loading…
Cancel
Save