mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
Update Go to Class/Symbol content
This commit is contained in:
parent
2fbcf27a1b
commit
5ee347bb0e
@ -24,7 +24,8 @@ public class SimpleChooseByNameContributor implements ChooseByNameContributorEx
|
|||||||
@NotNull GlobalSearchScope scope,
|
@NotNull GlobalSearchScope scope,
|
||||||
@Nullable IdFilter filter) {
|
@Nullable IdFilter filter) {
|
||||||
Project project = Objects.requireNonNull(scope.getProject());
|
Project project = Objects.requireNonNull(scope.getProject());
|
||||||
List<String> propertyKeys = ContainerUtil.map(SimpleUtil.findProperties(project), SimpleProperty::getKey);
|
List<String> propertyKeys = ContainerUtil.map(
|
||||||
|
SimpleUtil.findProperties(project), SimpleProperty::getKey);
|
||||||
ContainerUtil.process(propertyKeys, processor);
|
ContainerUtil.process(propertyKeys, processor);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +34,8 @@ public class SimpleChooseByNameContributor implements ChooseByNameContributorEx
|
|||||||
@NotNull Processor<? super NavigationItem> processor,
|
@NotNull Processor<? super NavigationItem> processor,
|
||||||
@NotNull FindSymbolParameters parameters) {
|
@NotNull FindSymbolParameters parameters) {
|
||||||
List<NavigationItem> properties = ContainerUtil.map(
|
List<NavigationItem> properties = ContainerUtil.map(
|
||||||
SimpleUtil.findProperties(parameters.getProject(), name), property -> (NavigationItem) property);
|
SimpleUtil.findProperties(parameters.getProject(), name),
|
||||||
|
property -> (NavigationItem) property);
|
||||||
ContainerUtil.process(properties, processor);
|
ContainerUtil.process(properties, processor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user