projectviewer.event
Enum ViewerUpdate.Type

java.lang.Object
  extended by java.lang.Enum<ViewerUpdate.Type>
      extended by projectviewer.event.ViewerUpdate.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ViewerUpdate.Type>
Enclosing class:
ViewerUpdate

public static enum ViewerUpdate.Type
extends java.lang.Enum<ViewerUpdate.Type>


Enum Constant Summary
GROUP_ACTIVATED
          Notifies that a group has been activated, or selected.
PROJECT_LOADED
          Notifies the changing of the active project.
PROJECT_UNLOADING
          Notifies that a project will be deactivated.
 
Method Summary
static ViewerUpdate.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ViewerUpdate.Type[] 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

PROJECT_LOADED

public static final ViewerUpdate.Type PROJECT_LOADED
Notifies the changing of the active project. A client must take into consideration that when PV sends his first PROJECT_LOADED message (sometimes at jEdit startup), client may not be activated yet and thus not able to receive this message.


PROJECT_UNLOADING

public static final ViewerUpdate.Type PROJECT_UNLOADING
Notifies that a project will be deactivated. It is possible that the same project will remain active in another view.

Since:
3.3.0

GROUP_ACTIVATED

public static final ViewerUpdate.Type GROUP_ACTIVATED
Notifies that a group has been activated, or selected.

Method Detail

values

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

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

valueOf

public static ViewerUpdate.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null