Merge remote-tracking branch 'origin/master'
authorAnna Kozlova <anna.kozlova@jetbrains.com>
Fri, 18 Jul 2014 19:57:34 +0000 (21:57 +0200)
committerAnna Kozlova <anna.kozlova@jetbrains.com>
Fri, 18 Jul 2014 19:57:34 +0000 (21:57 +0200)
platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java

index 6827d5d7ecfe184d0c1593f40805dadd066874db..d8dc5d00656a47126e032249f6547f1a1ce628ad 100644 (file)
@@ -85,6 +85,7 @@ public class InspectionProfileImpl extends ProfileEx implements ModifiableModel,
   private final ExternalInfo myExternalInfo = new ExternalInfo();
   @TestOnly
   public static boolean INIT_INSPECTIONS = false;
+  private List<NamedScope> myScopes = Collections.emptyList();
 
   @Override
   public void setModified(final boolean modified) {
@@ -942,4 +943,11 @@ public class InspectionProfileImpl extends ProfileEx implements ModifiableModel,
   public boolean equals(Object o) {
     return super.equals(o) && ((InspectionProfileImpl)o).getProfileManager() == getProfileManager();
   }
+
+  /**
+   * @return list of used scopes for all inspections
+   */
+  public List<NamedScope> getUsedScopes() {
+    return myScopes;
+  }
 }