mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] reorder methods
GitOrigin-RevId: df2d9afa148e652633eeb9ffd0aaca1e64edb304
This commit is contained in:
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) {
|
||||
|
||||
Reference in New Issue
Block a user