mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: remove unnecessary method
This commit is contained in:
+2
-7
@@ -157,11 +157,6 @@ public class StructuralSearchDialog extends DialogWrapper {
|
||||
myUseLastConfiguration = useLastConfiguration;
|
||||
}
|
||||
|
||||
void setSearchPattern(Configuration config) {
|
||||
loadConfiguration(config);
|
||||
initiateValidation();
|
||||
}
|
||||
|
||||
private EditorTextField createEditor(String text) {
|
||||
final StructuralSearchProfile profile = StructuralSearchUtil.getProfileByFileType(myFileType);
|
||||
assert profile != null;
|
||||
@@ -448,7 +443,7 @@ public class StructuralSearchDialog extends DialogWrapper {
|
||||
}
|
||||
}
|
||||
})
|
||||
.setItemChosenCallback(c -> setSearchPattern(c))
|
||||
.setItemChosenCallback(c -> loadConfiguration(c))
|
||||
.setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
|
||||
.createPopup()
|
||||
.showUnderneathOf((Component)source);
|
||||
@@ -513,7 +508,7 @@ public class StructuralSearchDialog extends DialogWrapper {
|
||||
}
|
||||
final Configuration[] configurations = dialog.getSelectedConfigurations();
|
||||
if (configurations.length == 1) {
|
||||
setSearchPattern(configurations[0]);
|
||||
loadConfiguration(configurations[0]);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ public class StructuralSearchTemplatesCompletionContributor extends CompletionCo
|
||||
.withCaseSensitivity(false)
|
||||
.withPresentableText(configurationName)
|
||||
.withInsertHandler((InsertionContext context, LookupElement item) -> context.setLaterRunnable(
|
||||
() -> dialog.setSearchPattern((Configuration)item.getObject())
|
||||
() -> dialog.loadConfiguration((Configuration)item.getObject())
|
||||
));
|
||||
insensitive.addElement(element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user