|
|
@ -97,7 +97,13 @@ public class VcsHelper implements JTemplateActionListener { |
|
|
|
EventDispatcher.listen(WorkspaceEvent.AfterSwitch, new Listener<Workspace>() { |
|
|
|
EventDispatcher.listen(WorkspaceEvent.AfterSwitch, new Listener<Workspace>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void on(Event event, Workspace param) { |
|
|
|
public void on(Event event, Workspace param) { |
|
|
|
root = WorkContext.getCurrent().isRoot() || WorkContext.getCurrent().isLocal(); |
|
|
|
try { |
|
|
|
|
|
|
|
root = WorkContext.getCurrent().isRoot() || WorkContext.getCurrent().isLocal(); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
root = false; |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error("[VcsHelper] get root failed", e.getMessage()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|