mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
problems tag get duplicated sometimes
This commit is contained in:
+15
-15
@@ -167,27 +167,27 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
|
||||
cleanupTools();
|
||||
setCurrentScope(scope);
|
||||
|
||||
DefaultInspectionToolPresentation.setOutputPath(outputPath);
|
||||
try {
|
||||
final Runnable action = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
performInspectionsWithProgress(scope, runGlobalToolsOnly, isOfflineInspections);
|
||||
DefaultInspectionToolPresentation.setOutputPath(null);
|
||||
final Runnable action = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
performInspectionsWithProgress(scope, runGlobalToolsOnly, isOfflineInspections);
|
||||
DefaultInspectionToolPresentation.setOutputPath(outputPath);
|
||||
try {
|
||||
exportResults(inspectionsResults, outputPath);
|
||||
}
|
||||
};
|
||||
if (isOfflineInspections) {
|
||||
ApplicationManager.getApplication().runReadAction(action);
|
||||
}
|
||||
else {
|
||||
action.run();
|
||||
finally {
|
||||
DefaultInspectionToolPresentation.setOutputPath(null);
|
||||
}
|
||||
}
|
||||
};
|
||||
if (isOfflineInspections) {
|
||||
ApplicationManager.getApplication().runReadAction(action);
|
||||
}
|
||||
finally {
|
||||
DefaultInspectionToolPresentation.setOutputPath(null);
|
||||
else {
|
||||
action.run();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void exportResults(@NotNull List<File> inspectionsResults, @Nullable String outputPath) {
|
||||
@NonNls final String ext = ".xml";
|
||||
|
||||
Reference in New Issue
Block a user