Enum DataModelerContext.EditionStatus
- java.lang.Object
-
- java.lang.Enum<DataModelerContext.EditionStatus>
-
- org.kie.workbench.common.screens.datamodeller.client.DataModelerContext.EditionStatus
-
- All Implemented Interfaces:
Serializable,Comparable<DataModelerContext.EditionStatus>
- Enclosing class:
- DataModelerContext
public static enum DataModelerContext.EditionStatus extends Enum<DataModelerContext.EditionStatus>
Status relative to the edition tabs. This is a kind of sub status, that tells us if there are pending changes in whatever of the edition tabs. It may happen that there are no pending changes in the edition tabs but the .java file is dirty. e.g. If you make some changes in the "Editor" tab and goes to the "Source" tab, the code will be automatically re generated to include the changes. After the code is re regenerated the editionStatus will be changed from EDITOR_CHANGED to NO_CHANGES. This means that the "Source" tab is synchronized with the "Editor" tab, but the .java file still needs to be saved. And thus the editor as the main component is dirty.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EDITOR_CHANGEDChanges has been done in "Editor" tab and the code wasn't regenerated yet.NO_CHANGESNo pending changes to process.SOURCE_CHANGEDChanges has been done in the "Source" tab and the data object wasn't regenerated (parsed) yet.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataModelerContext.EditionStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static DataModelerContext.EditionStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_CHANGES
public static final DataModelerContext.EditionStatus NO_CHANGES
No pending changes to process.
-
EDITOR_CHANGED
public static final DataModelerContext.EditionStatus EDITOR_CHANGED
Changes has been done in "Editor" tab and the code wasn't regenerated yet.
-
SOURCE_CHANGED
public static final DataModelerContext.EditionStatus SOURCE_CHANGED
Changes has been done in the "Source" tab and the data object wasn't regenerated (parsed) yet.
-
-
Method Detail
-
values
public static DataModelerContext.EditionStatus[] 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 (DataModelerContext.EditionStatus c : DataModelerContext.EditionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataModelerContext.EditionStatus 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
-
-