mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 10:14:57 +07:00
IJPL-163868 More FindSettings -> FindUsagesSettings
Replace the few remaining places where it's more or less obvious that the scope of "Find Usages" and not of "Find in Project" should be used. GitOrigin-RevId: f10d35b21bbf8f2e8d29cda67ffe2e5ed9bc5a7a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0a095aa682
commit
978d220e97
+3
-3
@@ -2,7 +2,7 @@
|
||||
package com.intellij.refactoring.typeMigration.ui;
|
||||
|
||||
import com.intellij.CommonBundle;
|
||||
import com.intellij.find.FindSettings;
|
||||
import com.intellij.find.FindUsagesSettings;
|
||||
import com.intellij.ide.highlighter.JavaFileType;
|
||||
import com.intellij.ide.util.scopeChooser.ScopeChooserCombo;
|
||||
import com.intellij.java.JavaBundle;
|
||||
@@ -57,7 +57,7 @@ public abstract class TypeMigrationDialog extends RefactoringDialog {
|
||||
myRoots = roots;
|
||||
myRules = rules;
|
||||
|
||||
myScopeChooserCombo = new ScopeChooserCombo(project, false, true, FindSettings.getInstance().getDefaultScopeName());
|
||||
myScopeChooserCombo = new ScopeChooserCombo(project, false, true, FindUsagesSettings.getInstance().getDefaultScopeName());
|
||||
Disposer.register(myDisposable, myScopeChooserCombo);
|
||||
myScopeChooserCombo.getChildComponent().addActionListener(new ActionListener() {
|
||||
@Override
|
||||
@@ -74,7 +74,7 @@ public abstract class TypeMigrationDialog extends RefactoringDialog {
|
||||
Messages.showErrorDialog(JavaRefactoringBundle.message("type.migration.no.scope.warning.message"), CommonBundle.getErrorTitle());
|
||||
return;
|
||||
}
|
||||
FindSettings.getInstance().setDefaultScopeName(myScopeChooserCombo.getSelectedScopeName());
|
||||
FindUsagesSettings.getInstance().setDefaultScopeName(myScopeChooserCombo.getSelectedScopeName());
|
||||
if (myRules == null) {
|
||||
myRules = new TypeMigrationRules(getProject());
|
||||
myRules.setBoundScope(myScopeChooserCombo.getSelectedScope());
|
||||
|
||||
Reference in New Issue
Block a user