|
|
|
@ -68,7 +68,11 @@ public class VcsHelper implements JTemplateActionListener {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private VcsHelper() { |
|
|
|
|
legacyMode = WorkContext.getCurrent().get(VcsOperator.class).isLegacyMode(); |
|
|
|
|
VcsOperator op = WorkContext.getCurrent().get(VcsOperator.class); |
|
|
|
|
// 开了设计器启动页面时一开始取不到VcsOperator,通过下面的切换环境事件再取,这边判断下
|
|
|
|
|
if (op != null) { |
|
|
|
|
legacyMode = op.isLegacyMode(); |
|
|
|
|
} |
|
|
|
|
EventDispatcher.listen(WorkspaceEvent.AfterSwitch, new Listener<Workspace>() { |
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Workspace param) { |
|
|
|
|