@Override
public void hierarchyChanged(HierarchyEvent hierarchyEvent) {
if ((hierarchyEvent.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) {
// We only want to listen to VFS_CHANGES events when the tool window is opened.
if (myTree.isShowing()) {
if (myConnection == null) {
myConnection = myProject.getMessageBus().connect(myProject);
myConnection.subscribe(VirtualFileManager.VFS_CHANGES, this);
}
}
else {
if (myConnection != null) {
myConnection.disconnect();
myConnection = null;
}
}
}
}
CapturesToolWindow.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:intellij-ce-playground
作者:
评论列表
文章目录