|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<AppEnvironment>
kawigi.util.AppEnvironment
public enum AppEnvironment
This enum class tells us whether we're in plugin mode or standalone mode.
| Enum Constant Summary | |
|---|---|
ApplicationMode
The mode we're in if KawigiEdit is being run as a standalone application. |
|
PluginMode
The mode we're in if we're being loaded as a plugin. |
|
UndefinedMode
As its name implies, this is when there is no mode set. |
|
| Field Summary | |
|---|---|
static java.lang.String |
VERSION
The current KawigiEdit version. |
| Method Summary | |
|---|---|
static AppEnvironment |
getEnvironment()
Returns the current application mode. |
static void |
setEnvironment(AppEnvironment env)
Sets the current application mode. |
static AppEnvironment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static AppEnvironment[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final AppEnvironment UndefinedMode
public static final AppEnvironment PluginMode
public static final AppEnvironment ApplicationMode
| Field Detail |
|---|
public static final java.lang.String VERSION
| Method Detail |
|---|
public static final AppEnvironment[] values()
for(AppEnvironment c : AppEnvironment.values())
System.out.println(c);
public static AppEnvironment 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 namepublic static void setEnvironment(AppEnvironment env)
public static AppEnvironment getEnvironment()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||