Search in sources :

Example 1 with AbstractConvertContext

use of com.intellij.util.xml.AbstractConvertContext in project intellij-community by JetBrains.

the class PsiTypeControl method setValue.

protected void setValue(String value) {
    final PsiType type = JvmPsiTypeConverterImpl.convertFromString(value, new AbstractConvertContext() {

        @NotNull
        public DomElement getInvocationElement() {
            return getDomElement();
        }
    });
    if (type != null) {
        value = type.getCanonicalText();
    }
    super.setValue(value);
}
Also used : DomElement(com.intellij.util.xml.DomElement) AbstractConvertContext(com.intellij.util.xml.AbstractConvertContext) NotNull(org.jetbrains.annotations.NotNull) PsiType(com.intellij.psi.PsiType)

Aggregations

PsiType (com.intellij.psi.PsiType)1 AbstractConvertContext (com.intellij.util.xml.AbstractConvertContext)1 DomElement (com.intellij.util.xml.DomElement)1 NotNull (org.jetbrains.annotations.NotNull)1