use of com.intellij.psi.impl.source.resolve.reference.impl.providers.FileReferenceSet in project intellij-plugins by JetBrains.
the class FreeMarkerStrutsResultContributor method createReferences.
public boolean createReferences(@NotNull final PsiElement psiElement, @NotNull final List<PsiReference> references, final boolean soft) {
final String namespace = getNamespace(psiElement);
if (namespace == null) {
return false;
}
final FileReferenceSet set = FileReferenceSetHelper.createRestrictedByFileType(psiElement, FtlFileType.INSTANCE);
final WebFacet webFacet = WebUtil.getWebFacet(psiElement);
if (webFacet != null) {
FileReferenceSetHelper.addWebDirectoryAndCurrentNamespaceAsRoots(psiElement, namespace, webFacet, set);
}
set.setEmptyPathAllowed(false);
Collections.addAll(references, set.getAllReferences());
return true;
}
Aggregations