public class PsiPackageConverter extends Converter<PsiPackage> implements CustomReferenceConverter<PsiPackage>
EMPTY_CONVERTER, INTEGER_CONVERTER
Constructor and Description |
---|
PsiPackageConverter() |
Modifier and Type | Method and Description |
---|---|
PsiReference [] |
createReferences(GenericDomValue<PsiPackage> 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 ). |
PsiPackage |
fromString(java.lang.String s,
ConvertContext context) |
java.lang.String |
toString(PsiPackage psiPackage,
ConvertContext context) |
getErrorMessage
public PsiPackage fromString(java.lang.String s, ConvertContext context)
fromString
in class Converter<PsiPackage>
public java.lang.String toString(PsiPackage psiPackage, ConvertContext context)
toString
in class Converter<PsiPackage>
public PsiReference [] createReferences(GenericDomValue<PsiPackage> 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<PsiPackage>
genericDomValue
- GenericDomValue in questionelement
- corresponding PSI elementcontext
- ConvertContext
PsiReference
s for the value