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
PsiReference s for GenericDomValue
Returned PsiReference s 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) |
getErrorMessage
public 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)
CustomReferenceConverter
PsiReference
s for GenericDomValue
Returned PsiReference
s should be soft (PsiReference.isSoft()
should return true
).
To highlight unresolved references, create a DomElementsInspection
and register it.createReferences
in interface CustomReferenceConverter
genericDomValue
- GenericDomValue in questionelement
- corresponding PSI elementcontext
- ConvertContext
PsiReference
s for the valuepublic PsiReference [] createReferences(PsiElement psiElement, boolean soft)