Ejemplo n.º 1
0
 @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);
 }
Ejemplo n.º 2
0
          @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();
            }
          }