|
|
|
@ -79,7 +79,12 @@ public class VcsHelper implements JTemplateActionListener {
|
|
|
|
|
VcsOperator op = WorkContext.getCurrent().get(VcsOperator.class); |
|
|
|
|
// 开了设计器启动页面时一开始取不到VcsOperator,通过下面的切换环境事件再取,这边判断下
|
|
|
|
|
if (op != null) { |
|
|
|
|
legacyMode = op.isLegacyMode(); |
|
|
|
|
try { |
|
|
|
|
legacyMode = op.isLegacyMode(); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
legacyMode = true; |
|
|
|
|
FineLoggerFactory.getLogger().error("[VcsHelper] get legacy first failed ", e.getMessage()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
EventDispatcher.listen(ConfigEvent.READY, new ListenerAdaptor() { |
|
|
|
|
@Override |
|
|
|
|