Java Code Examples for com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry#getReferencesFromProviders()
The following examples show how to use
com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry#getReferencesFromProviders() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SQFString.java From arma-intellij-plugin with MIT License | 6 votes |
@NotNull @Override public PsiReference[] getReferences() { List<SQFVariableInStringReference> currentFileRefs = SQFScope.getVariableReferencesFor(this); PsiReference[] refsFromProviders = ReferenceProvidersRegistry.getReferencesFromProviders(this); if (currentFileRefs.size() == 0 && refsFromProviders.length == 0) { return PsiReference.EMPTY_ARRAY; } PsiReference[] refsAsArray = new PsiReference[currentFileRefs.size() + refsFromProviders.length]; int i = 0; for (; i < currentFileRefs.size(); i++) { refsAsArray[i] = currentFileRefs.get(i); } for (int j = 0; j < refsFromProviders.length; i++, j++) { refsAsArray[i] = refsFromProviders[j]; } return refsAsArray; }
Example 2
Source File: SQFString.java From arma-intellij-plugin with MIT License | 6 votes |
@NotNull @Override public PsiReference[] getReferences() { List<SQFVariableInStringReference> currentFileRefs = SQFScope.getVariableReferencesFor(this); PsiReference[] refsFromProviders = ReferenceProvidersRegistry.getReferencesFromProviders(this); if (currentFileRefs.size() == 0 && refsFromProviders.length == 0) { return PsiReference.EMPTY_ARRAY; } PsiReference[] refsAsArray = new PsiReference[currentFileRefs.size() + refsFromProviders.length]; int i = 0; for (; i < currentFileRefs.size(); i++) { refsAsArray[i] = currentFileRefs.get(i); } for (int j = 0; j < refsFromProviders.length; i++, j++) { refsAsArray[i] = refsFromProviders[j]; } return refsAsArray; }
Example 3
Source File: JsonnetNamedElementImpl.java From intellij-jsonnet with Apache License 2.0 | 5 votes |
@Override public PsiReference getReference() { PsiReference[] referencesFromProviders = ReferenceProvidersRegistry.getReferencesFromProviders(this); if (referencesFromProviders.length == 1) return referencesFromProviders[0]; else return null; }
Example 4
Source File: JavaClassQualifiedNameReference.java From intellij with Apache License 2.0 | 5 votes |
@Override public PsiReference[] getReferences(String attributeName, StringLiteral literal) { if (!JAVA_CLASS_STRING_TYPES.contains(attributeName)) { return PsiReference.EMPTY_ARRAY; } return ReferenceProvidersRegistry.getReferencesFromProviders(literal); }
Example 5
Source File: LattePhpPropertyElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 6
Source File: LatteMacroTagElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 7
Source File: IgnoreElementImpl.java From idea-gitignore with MIT License | 4 votes |
/** * Gets {@link PsiReference} list for given element. * * @return {@link PsiReference} list */ @NotNull @Override public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 8
Source File: LattePhpVariableElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 9
Source File: LattePhpClassReferenceElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 10
Source File: LattePhpMethodElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 11
Source File: LattePhpStaticVariableElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 12
Source File: PsiCoreCommentImpl.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 13
Source File: LatteMacroModifierElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 14
Source File: PsiExtraFile.java From netbeans-mmd-plugin with Apache License 2.0 | 4 votes |
@Nonnull @Override public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 15
Source File: JSGraphQLEndpointStringLiteralPsiElement.java From js-graphql-intellij-plugin with MIT License | 4 votes |
@Override @NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 16
Source File: FluidLiteralMixin.java From idea-php-typo3-plugin with MIT License | 4 votes |
@NotNull @Override public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 17
Source File: FluidElementImpl.java From idea-php-typo3-plugin with MIT License | 4 votes |
@NotNull @Override public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 18
Source File: PsiPlainTextFileImpl.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this,PsiPlainTextFile.class); }
Example 19
Source File: LattePhpClassUsageElementImpl.java From intellij-latte with MIT License | 4 votes |
@NotNull public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }
Example 20
Source File: JsonnetNamedElementImpl.java From intellij-jsonnet with Apache License 2.0 | 4 votes |
@NotNull @Override public PsiReference[] getReferences() { return ReferenceProvidersRegistry.getReferencesFromProviders(this); }