public abstract class AbstractDomChildDescriptionImpl extends java.lang.Object implements AbstractDomChildrenDescription, java.lang.Comparable<AbstractDomChildDescriptionImpl>
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
AbstractDomChildDescriptionImpl(java.lang.reflect.Type type) |
Modifier and Type | Method and Description |
---|---|
void |
addCustomAnnotation(java.lang.annotation.Annotation annotation) |
boolean |
canNavigate()
Indicates whether this instance supports navigation of any kind.
|
boolean |
canNavigateToSource()
Indicates whether this instance supports navigation to source (that means some kind of editor).
|
boolean |
equals(java.lang.Object o) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass) |
PsiElement |
getDeclaration(Project project) |
DomElement |
getDomDeclaration() |
DomNameStrategy |
getDomNameStrategy(DomElement parent) |
ElementPresentationTemplate |
getPresentationTemplate() |
java.util.List<? extends DomElement> |
getStableValues(DomElement parent) |
java.lang.reflect.Type |
getType() |
<T> T |
getUserData(Key<T> key) |
int |
hashCode() |
boolean |
isStubbed() |
boolean |
isValid() |
void |
navigate(boolean requestFocus)
Open editor and select/navigate to the object there if possible.
|
void |
setUserMap(java.util.Map userMap) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getValues
protected AbstractDomChildDescriptionImpl(java.lang.reflect.Type type)
public final void addCustomAnnotation(java.lang.annotation.Annotation annotation)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setUserMap(java.util.Map userMap)
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public <T> T getUserData(Key<T> key)
getUserData
in interface AbstractDomChildrenDescription
public final java.util.List<? extends DomElement> getStableValues(DomElement parent)
getStableValues
in interface AbstractDomChildrenDescription
public final java.lang.reflect.Type getType()
getType
in interface AbstractDomChildrenDescription
public DomNameStrategy getDomNameStrategy(DomElement parent)
getDomNameStrategy
in interface AbstractDomChildrenDescription
public void navigate(boolean requestFocus)
Navigatable
navigate
in interface Navigatable
requestFocus
- true
if focus requesting is necessarypublic boolean canNavigate()
Navigatable
Navigatable.canNavigateToSource()
returns true
.
We assume that this method should return true
in such case,
so implement this method respectively.canNavigate
in interface Navigatable
false
if navigation is not possible for any reason.public boolean canNavigateToSource()
Navigatable
false
.
In such cases it is not recommended to do batch navigation for all navigatables
available via CommonDataKeys.NAVIGATABLE_ARRAY
,
because it may lead to opening several modal dialogs.
Use OpenSourceUtil.navigate(com.intellij.pom.Navigatable...)
to process such arrays correctly.canNavigateToSource
in interface Navigatable
false
if navigation to source is not possible for any reason.public ElementPresentationTemplate getPresentationTemplate()
getPresentationTemplate
in interface AbstractDomChildrenDescription
public PsiElement getDeclaration(Project project)
getDeclaration
in interface AbstractDomChildrenDescription
public DomElement getDomDeclaration()
getDomDeclaration
in interface AbstractDomChildrenDescription
public boolean isStubbed()
isStubbed
in interface AbstractDomChildrenDescription