model.setEditable(toolWrapper.getDisplayName());
final GlobalInspectionContextImpl inspectionContext = managerEx.createNewGlobalContext(false);
inspectionContext.setExternalProfile(model);
- inspectionContext.setSingleInspectionRun(true);
return inspectionContext;
}
private volatile InspectionResultsView myView;
private Content myContent;
private volatile boolean myViewClosed = true;
- private volatile boolean mySingleInspectionRun;
@NotNull
private AnalysisUIOptions myUIOptions;
public void addView(@NotNull InspectionResultsView view) {
addView(view, view.getCurrentProfileName() == null
? InspectionsBundle.message("inspection.results.title")
- : InspectionsBundle.message(mySingleInspectionRun ?
+ : InspectionsBundle.message(!getCurrentProfile().isEditable() ?
"inspection.results.for.inspection.toolwindow.title" :
"inspection.results.for.profile.toolwindow.title",
view.getCurrentProfileName(), getCurrentScope().getShortenName()), false);
return myViewClosed;
}
- public void setSingleInspectionRun(boolean singleInspectionRun) {
- mySingleInspectionRun = singleInspectionRun;
- }
-
- public boolean isSingleInspectionRun() {
- return mySingleInspectionRun;
- }
-
private InspectionRVContentProvider createContentProvider() {
return new InspectionRVContentProviderImpl(getProject());
}
myGlobalInspectionContext = globalInspectionContext;
myProvider = provider;
myExcludedInspectionTreeNodesManager = new ExcludedInspectionTreeNodesManager(provider instanceof OfflineInspectionRVContentProvider,
- globalInspectionContext.isSingleInspectionRun());
+ !myInspectionProfile.isEditable());
myTree = new InspectionTree(myProject, globalInspectionContext, this);
initTreeListeners();
synchronized (myTreeStructureUpdateLock) {
InspectionProfileImpl profile = (InspectionProfileImpl)myInspectionProfile;
boolean isGroupedBySeverity = myGlobalInspectionContext.getUIOptions().GROUP_BY_SEVERITY;
- boolean singleInspectionRun = myGlobalInspectionContext.isSingleInspectionRun();
+ boolean singleInspectionRun = !myInspectionProfile.isEditable();
for (Tools currentTools : tools) {
InspectionToolWrapper defaultToolWrapper = currentTools.getDefaultState().getTool();
if (myGlobalInspectionContext.getUIOptions().FILTER_RESOLVED_ITEMS &&