Kie Workbench - Commom - Data modeller Client 6.2.0.CR2

org.kie.workbench.common.screens.datamodeller.client
Enum DataModelerContext.EditionStatus

java.lang.Object
  extended by java.lang.Enum<DataModelerContext.EditionStatus>
      extended by 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 this the editor as the mail component is dirty.


Enum Constant Summary
EDITOR_CHANGED
          Changes has been done in "Editor" tab and the code wasn't regenerated yet.
NO_CHANGES
          No pending changes to process.
SOURCE_CHANGED
          Changes has been done in the "Source" tab and the data object wasn't regenerated (parsed) yet.
 
Method Summary
static DataModelerContext.EditionStatus valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

Kie Workbench - Commom - Data modeller Client 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.