Enum PromptKind
- java.lang.Object
-
- java.lang.Enum<PromptKind>
-
- org.eclipse.emf.edapt.history.preferences.ui.PromptKind
-
- All Implemented Interfaces:
Serializable
,Comparable<PromptKind>
public enum PromptKind extends Enum<PromptKind>
An enumeration of preference values for a prompting preference.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PromptKind
get(org.eclipse.jface.preference.IPreferenceStore store, String key)
Get the value of a preferencekey
from the givenstore
.static PromptKind
getByValue(String value)
Get a prompt kind by string value.String
toString()
static PromptKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static PromptKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROMPT
public static final PromptKind PROMPT
-
NEVER
public static final PromptKind NEVER
-
ALWAYS
public static final PromptKind ALWAYS
-
-
Method Detail
-
values
public static PromptKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PromptKind c : PromptKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PromptKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static PromptKind get(org.eclipse.jface.preference.IPreferenceStore store, String key)
Get the value of a preferencekey
from the givenstore
.- Parameters:
store
- the preference storekey
- the preference to get- Returns:
- the preference value
-
getByValue
public static PromptKind getByValue(String value)
Get a prompt kind by string value.- Parameters:
value
- the value- Returns:
- the corresponding prompt kind, or
PROMPT
if thevalue
is invalid
-
toString
public String toString()
- Overrides:
toString
in classEnum<PromptKind>
-
-