public static enum ExternalAnnotationsManager.AnnotationPlace extends java.lang.Enum<ExternalAnnotationsManager.AnnotationPlace>
Enum Constant and Description |
---|
EXTERNAL
Annotation must be placed externally
|
IN_CODE
Annotation must be placed right in the code
|
NEED_ASK_USER
User should be asked to decide whether they want to create new annotation root for external annotation.
|
NOWHERE
User actively cancelled the annotation addition, so it should not be added at all.
|
Modifier and Type | Method and Description |
---|---|
static ExternalAnnotationsManager.AnnotationPlace |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExternalAnnotationsManager.AnnotationPlace[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExternalAnnotationsManager.AnnotationPlace IN_CODE
public static final ExternalAnnotationsManager.AnnotationPlace EXTERNAL
public static final ExternalAnnotationsManager.AnnotationPlace NEED_ASK_USER
ExternalAnnotationsManager.chooseAnnotationsPlace(PsiElement)
asks user automatically, so this result is never returned,
but it requires EDT thread. On the other hand, ExternalAnnotationsManager.chooseAnnotationsPlaceNoUi(PsiElement)
never displays UI but may return this result.public static final ExternalAnnotationsManager.AnnotationPlace NOWHERE
public static ExternalAnnotationsManager.AnnotationPlace[] values()
for (ExternalAnnotationsManager.AnnotationPlace c : ExternalAnnotationsManager.AnnotationPlace.values()) System.out.println(c);
public static ExternalAnnotationsManager.AnnotationPlace valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null