use of com.intellij.util.xml.ConvertContext in project intellij-plugins by JetBrains.
the class DefaultInterceptorRefResolveConverterImpl method getVariants.
@NotNull
public Collection<? extends InterceptorStack> getVariants(final ConvertContext context) {
final List<InterceptorStack> results = new SmartList<>();
final Processor<StrutsPackage> processor = strutsPackage -> {
results.addAll(strutsPackage.getInterceptorStacks());
return true;
};
final StrutsPackageHierarchyWalker walker = new StrutsPackageHierarchyWalker(getCurrentStrutsPackage(context), processor);
walker.walkUp();
return results;
}
use of com.intellij.util.xml.ConvertContext in project intellij-plugins by JetBrains.
the class InterceptorRefResolveConverterImpl method getVariants.
@NotNull
public Collection<? extends InterceptorOrStackBase> getVariants(final ConvertContext context) {
final List<InterceptorOrStackBase> results = new SmartList<>();
final Processor<StrutsPackage> processor = strutsPackage -> {
final List<InterceptorOrStackBase> allInterceptors = getAllInterceptors(strutsPackage);
results.addAll(allInterceptors);
return true;
};
final StrutsPackageHierarchyWalker walker = new StrutsPackageHierarchyWalker(ConverterUtil.getCurrentStrutsPackage(context), processor);
walker.walkUp();
return results;
}
use of com.intellij.util.xml.ConvertContext in project intellij-plugins by JetBrains.
the class ResultTypeResolvingConverterImpl method getVariants.
@NotNull
public Collection<? extends ResultType> getVariants(final ConvertContext context) {
final List<ResultType> results = new SmartList<>();
final Processor<StrutsPackage> processor = strutsPackage -> {
results.addAll(strutsPackage.getResultTypes());
return true;
};
final StrutsPackageHierarchyWalker walker = new StrutsPackageHierarchyWalker(ConverterUtil.getCurrentStrutsPackage(context), processor);
walker.walkUp();
return results;
}
Aggregations