mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-117095 Goto File: checkbox 'include non-project files' is remembered between invocations [r=Anna.Kozlova]
This commit is contained in:
@@ -101,13 +101,16 @@ public class GotoFileModel extends FilteringGotoByModel<FileType> {
|
||||
@Override
|
||||
public boolean loadInitialCheckBoxState() {
|
||||
PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject);
|
||||
return propertiesComponent.isTrueValue("GoToFile.includeJavaFiles");
|
||||
return propertiesComponent.isTrueValue("GoToClass.toSaveIncludeLibraries") &&
|
||||
propertiesComponent.isTrueValue("GoToFile.includeJavaFiles");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveInitialCheckBoxState(boolean state) {
|
||||
PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject);
|
||||
propertiesComponent.setValue("GoToFile.includeJavaFiles", Boolean.toString(state));
|
||||
if (propertiesComponent.isTrueValue("GoToClass.toSaveIncludeLibraries")) {
|
||||
propertiesComponent.setValue("GoToFile.includeJavaFiles", Boolean.toString(state));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user