public enum PromptKind extends Enum<PromptKind>
Modifier and Type | Method and Description |
---|---|
static PromptKind |
get(org.eclipse.jface.preference.IPreferenceStore store,
String key)
Get the value of a preference
key from the given store . |
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.
|
public static final PromptKind PROMPT
public static final PromptKind NEVER
public static final PromptKind ALWAYS
public static PromptKind[] values()
for (PromptKind c : PromptKind.values()) System.out.println(c);
public static PromptKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PromptKind get(org.eclipse.jface.preference.IPreferenceStore store, String key)
key
from the given store
.store
- the preference storekey
- the preference to getpublic static PromptKind getByValue(String value)
value
- the valuePROMPT
if the value
is invalidpublic String toString()
toString
in class Enum<PromptKind>
Copyright © 2019. All rights reserved.