inspection tool window: method removed
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Wed, 27 Apr 2016 12:26:35 +0000 (15:26 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Thu, 28 Apr 2016 14:19:22 +0000 (17:19 +0300)
platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionRVContentProviderImpl.java
platform/lang-impl/src/com/intellij/codeInspection/ex/QuickFixAction.java
platform/lang-impl/src/com/intellij/codeInspection/offlineViewer/OfflineInspectionRVContentProvider.java
platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionResultsView.java
platform/lang-impl/src/com/intellij/codeInspection/ui/InspectionTree.java
platform/lang-impl/src/com/intellij/codeInspection/ui/QuickFixPreviewPanelFactory.java

index d99ef3bd36f961053ae5bcef330e323aeeb831e1..5bc4d6ad5f07227066baa5f022ab14898c22fe32 100644 (file)
@@ -80,7 +80,7 @@ public class InspectionRVContentProviderImpl extends InspectionRVContentProvider
   public QuickFixAction[] getQuickFixes(@NotNull final InspectionToolWrapper toolWrapper, @NotNull final InspectionTree tree) {
     final RefEntity[] refEntities = tree.getSelectedElements();
     InspectionToolPresentation presentation = tree.getContext().getPresentation(toolWrapper);
-    return refEntities.length == 0 ? null : presentation.getQuickFixes(refEntities, tree.getSelectedDescriptors());
+    return refEntities.length == 0 ? null : presentation.getQuickFixes(refEntities, tree.getSelectedDescriptors(false));
   }
 
 
index d463e718d57b49b067d0f6413c1b2eed17e19ef2..e2c20c73a859322d766126d65ea7022bd3972732 100644 (file)
@@ -94,7 +94,7 @@ public class QuickFixAction extends AnAction implements CustomComponentAction {
     }
 
     if (!isProblemDescriptorsAcceptable() && tree.getSelectedElements().length > 0 ||
-        isProblemDescriptorsAcceptable() && tree.getSelectedDescriptors().length > 0) {
+        isProblemDescriptorsAcceptable() && tree.getSelectedDescriptors(false).length > 0) {
       e.getPresentation().setVisible(true);
       e.getPresentation().setEnabled(true);
     }
index c39ef74da145b6b4ecadd708cca94b8be8c57812..ab5716c9c03673f8a55bf9e64178c140d47f7ef8 100644 (file)
@@ -35,7 +35,6 @@ import com.intellij.util.ui.tree.TreeUtil;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
-import javax.swing.tree.DefaultTreeModel;
 import javax.swing.tree.TreeNode;
 import javax.swing.tree.TreePath;
 import java.util.*;
@@ -97,7 +96,7 @@ public class OfflineInspectionRVContentProvider extends InspectionRVContentProvi
 
     GlobalInspectionContextImpl context = tree.getContext();
     InspectionToolPresentation presentation = context.getPresentation(toolWrapper);
-    return presentation.extractActiveFixes(selectedRefElements, actions, tree.getSelectedDescriptors());
+    return presentation.extractActiveFixes(selectedRefElements, actions, tree.getSelectedDescriptors(false));
   }
 
   @Override
index defe2dbd80cda7983b0cd15150b4f8a3784224df..d3afab5262f567c01ed019a17622bc43def8bff8 100644 (file)
@@ -507,7 +507,7 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
         !(((RefElement)selectedEntity).getElement() instanceof PsiDirectory)) {
       PsiElement selectedElement = ((RefElement)selectedEntity).getElement();
       if (problemCount == 1) {
-        CommonProblemDescriptor[] descriptors = myTree.getSelectedDescriptors();
+        CommonProblemDescriptor[] descriptors = myTree.getSelectedDescriptors(false);
         if (descriptors.length != 0) {
           final CommonProblemDescriptor descriptor = descriptors[0];
           if (descriptor instanceof ProblemDescriptorBase) {
index 982f73785e76dcea532833b4f83498a15c94de21..60ffb40dc6b898b8f14fe8ec6f0e302986fd1dee 100644 (file)
@@ -212,10 +212,6 @@ public class InspectionTree extends Tree {
     }
   }
 
-  public CommonProblemDescriptor[] getSelectedDescriptors() {
-    return getSelectedDescriptors(false);
-  }
-
   public CommonProblemDescriptor[] getSelectedDescriptors(boolean sortedByPosition) {
     final TreePath[] paths = getSelectionPaths();
     if (paths == null) return CommonProblemDescriptor.EMPTY_ARRAY;
index 0c15fe13528871d27101e80312e06a8097a78784..c58bf82520a856c9a5574468b151748b7dfb2f47 100644 (file)
@@ -66,7 +66,7 @@ public class QuickFixPreviewPanelFactory {
       myView = view;
       myWrapper = view.getTree().getSelectedToolWrapper();
       LOG.assertTrue(myWrapper != null);
-      CommonProblemDescriptor[] descriptors = myView.getTree().getSelectedDescriptors();
+      CommonProblemDescriptor[] descriptors = myView.getTree().getSelectedDescriptors(false);
       if (editor != null) {
         new ProblemPreviewEditorPresentation(editor, view.getProject(), descriptors);
       }