@Override public void showSource( @NotNull OpenFileDescriptor descriptor, @NotNull DiffPanelImpl diffPanel) { Window window = diffPanel.getOwnerWindow(); if (window == null) return; else if (window instanceof Frame) OPEN_EDITOR.showSource(descriptor, diffPanel); else OPEN_EDITOR_AND_CLOSE_DIFF.showSource(descriptor, diffPanel); }
@Override public void showSource( @NotNull OpenFileDescriptor descriptor, @NotNull DiffPanelImpl diffPanel) { OPEN_EDITOR.showSource(descriptor, diffPanel); if (diffPanel.getOwnerWindow() == null) return; Disposer.dispose(diffPanel); if (!dialogWrapperClose(diffPanel.getOwnerWindow())) { diffPanel.getOwnerWindow().setVisible(false); diffPanel.getOwnerWindow().dispose(); } }