public class PathReferenceConverter extends Converter<PathReference> implements CustomReferenceConverter
| Modifier and Type | Field and Description |
|---|---|
static Converter<PathReference> |
INSTANCE |
EMPTY_CONVERTER, INTEGER_CONVERTER| Constructor and Description |
|---|
PathReferenceConverter() |
| Modifier and Type | Method and Description |
|---|---|
PsiReference [] |
createReferences(GenericDomValue genericDomValue,
PsiElement element,
ConvertContext context)
Will be called on creating
PsiReferences for GenericDomValue
Returned PsiReferences should be soft (PsiReference.isSoft() should return true). |
PsiReference [] |
createReferences(PsiElement psiElement,
boolean soft) |
PathReference |
fromString(java.lang.String s,
ConvertContext context) |
java.lang.String |
toString(PathReference t,
ConvertContext context) |
getErrorMessagepublic static final Converter<PathReference> INSTANCE
public PathReference fromString(java.lang.String s, ConvertContext context)
fromString in class Converter<PathReference>public java.lang.String toString(PathReference t, ConvertContext context)
toString in class Converter<PathReference>public PsiReference [] createReferences(GenericDomValue genericDomValue, PsiElement element, ConvertContext context)
CustomReferenceConverterPsiReferences for GenericDomValue
Returned PsiReferences should be soft (PsiReference.isSoft() should return true).
To highlight unresolved references, create a DomElementsInspection and register it.createReferences in interface CustomReferenceConvertergenericDomValue - GenericDomValue in questionelement - corresponding PSI elementcontext - ConvertContextPsiReferences for the valuepublic PsiReference [] createReferences(PsiElement psiElement, boolean soft)