[vcs-log] reorder methods

GitOrigin-RevId: df2d9afa148e652633eeb9ffd0aaca1e64edb304
This commit is contained in:
Julia Beliaeva
2019-10-13 21:38:11 +00:00
committed by intellij-monorepo-bot
parent 4a74d81590
commit a1114a9d26
@@ -93,6 +93,20 @@ public class VcsLogTabsWatcher implements Disposable {
}
}
private void removeListeners() {
myConnection.disconnect();
if (myToolWindow != null) {
myToolWindow.getContentManager().removeContentManagerListener(myPostponedEventsListener);
myToolWindow.getContentManager().removeContentManagerListener(myLogEditorListener);
for (Content content : myToolWindow.getContentManager().getContents()) {
if (content instanceof TabbedContent) {
content.removePropertyChangeListener(myPostponedEventsListener);
}
}
}
}
private void processVirtualFile(VirtualFile file) {
if (file instanceof GraphViewVirtualFile) {
@@ -150,21 +164,6 @@ public class VcsLogTabsWatcher implements Disposable {
}
}
private void removeListeners() {
myConnection.disconnect();
if (myToolWindow != null) {
myToolWindow.getContentManager().removeContentManagerListener(myPostponedEventsListener);
myToolWindow.getContentManager().removeContentManagerListener(myLogEditorListener);
for (Content content : myToolWindow.getContentManager().getContents()) {
if (content instanceof TabbedContent) {
content.removePropertyChangeListener(myPostponedEventsListener);
}
}
}
}
private void closeLogTabs() {
ToolWindow window = (myToolWindow != null) ? myToolWindow : myToolWindowManager.getToolWindow(TOOLWINDOW_ID);
if (window != null) {