de.cau.cs.kieler.core.model.triggers
Enum PartTrigger.EventType

java.lang.Object
  extended by java.lang.Enum<PartTrigger.EventType>
      extended by de.cau.cs.kieler.core.model.triggers.PartTrigger.EventType
All Implemented Interfaces:
Comparable<PartTrigger.EventType>
Enclosing class:
PartTrigger

public static enum PartTrigger.EventType
extends Enum<PartTrigger.EventType>

Possible EventTypes PartStates are indicating.

Rating red

Enum Constant Summary
ACTIVE_EDITOR_CLOSED
          The active editor has been closed.
ACTIVE_EDITOR_DEACTIVATED
          The active editor lost the focus but is kept in trigger state.
ACTIVE_EDITOR_HIDDEN
          The active editor has been hidden and is kept on.
ACTIVE_EDITOR_VISIBLE
          The active editor is visible again and is kept on.
EDITOR_ACTIVATED
          An editor is active, it got the focus.
VIEW_ACTIVATED
          A view is active, it got the focus.
VIEW_CLOSED
          A view has been closed.
VIEW_DEACTIVATED
          A view lost the focus and is inactive.
 
Method Summary
static PartTrigger.EventType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PartTrigger.EventType[] 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

VIEW_ACTIVATED

public static final PartTrigger.EventType VIEW_ACTIVATED
A view is active, it got the focus.


VIEW_DEACTIVATED

public static final PartTrigger.EventType VIEW_DEACTIVATED
A view lost the focus and is inactive.


VIEW_CLOSED

public static final PartTrigger.EventType VIEW_CLOSED
A view has been closed.


EDITOR_ACTIVATED

public static final PartTrigger.EventType EDITOR_ACTIVATED
An editor is active, it got the focus.


ACTIVE_EDITOR_DEACTIVATED

public static final PartTrigger.EventType ACTIVE_EDITOR_DEACTIVATED
The active editor lost the focus but is kept in trigger state.


ACTIVE_EDITOR_HIDDEN

public static final PartTrigger.EventType ACTIVE_EDITOR_HIDDEN
The active editor has been hidden and is kept on. This might occur if a view is maximized, which often leads to strange behavior if PlatformUI....getActiveEditor is used.


ACTIVE_EDITOR_VISIBLE

public static final PartTrigger.EventType ACTIVE_EDITOR_VISIBLE
The active editor is visible again and is kept on. This might occur if a view maximized view is re-normalized, which led to PlatformUI....getActiveEditor returns null in the past.


ACTIVE_EDITOR_CLOSED

public static final PartTrigger.EventType ACTIVE_EDITOR_CLOSED
The active editor has been closed.

Method Detail

values

public static PartTrigger.EventType[] 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 (PartTrigger.EventType c : PartTrigger.EventType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PartTrigger.EventType 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