mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not skip remembered scope to custom project and libraries one
This commit is contained in:
@@ -152,8 +152,7 @@ public class BaseAnalysisActionDialog extends DialogWrapper {
|
||||
if (searchInLib && GlobalSearchScope.projectScope(myProject).getDisplayName().equals(preselect)) {
|
||||
preselect = GlobalSearchScope.allScope(myProject).getDisplayName();
|
||||
}
|
||||
if (GlobalSearchScope.allScope(myProject).getDisplayName().equals(preselect)) {
|
||||
myAnalysisOptions.SCOPE_TYPE = AnalysisScope.CUSTOM;
|
||||
if (GlobalSearchScope.allScope(myProject).getDisplayName().equals(preselect) && myAnalysisOptions.SCOPE_TYPE == AnalysisScope.CUSTOM) {
|
||||
myAnalysisOptions.CUSTOM_SCOPE_NAME = preselect;
|
||||
searchInLib = true;
|
||||
}
|
||||
|
||||
+2
-1
@@ -95,7 +95,7 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext {
|
||||
|
||||
private final Map<String, Tools> myTools = new THashMap<String, Tools>();
|
||||
|
||||
private final AnalysisUIOptions myUIOptions;
|
||||
private AnalysisUIOptions myUIOptions;
|
||||
|
||||
public GlobalInspectionContextImpl(Project project, NotNullLazyValue<ContentManager> contentManager) {
|
||||
myProject = project;
|
||||
@@ -402,6 +402,7 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext {
|
||||
}
|
||||
|
||||
private void launchInspections(final AnalysisScope scope, final InspectionManager manager) {
|
||||
myUIOptions = AnalysisUIOptions.getInstance(myProject).copy();
|
||||
ApplicationManager.getApplication().runWriteAction(new Runnable() {
|
||||
public void run() {
|
||||
PsiDocumentManager.getInstance(myProject).commitAllDocuments();
|
||||
|
||||
Reference in New Issue
Block a user