ides.api.plugin.model
Class DESModelMessage

java.lang.Object
  extended by ides.api.plugin.model.DESModelMessage

public class DESModelMessage
extends java.lang.Object

Message sent to the subscribers listening for updates of a DESModel.


Field Summary
static int CLEAN
          Changes to DESModel were saved (dirty to clean)
static int DIRTY
          DESModel became dirty (clean to dirty)
static int NAME
          DESModel was renamed
 
Constructor Summary
DESModelMessage(int eventType, DESModel source)
          Creates a change notification message for DESModels to pass to DESModelSubscribers.
DESModelMessage(int eventType, DESModel source, java.lang.String message)
          Creates a change notification message for DESModels to pass to DESModelSubscribers.
 
Method Summary
 int getEventType()
          Returns the type of event that occurred.
 java.lang.String getMessage()
          Returns a string describing the message.
 DESModel getSource()
          Returns the model that sent this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIRTY

public static final int DIRTY
DESModel became dirty (clean to dirty)

See Also:
Constant Field Values

CLEAN

public static final int CLEAN
Changes to DESModel were saved (dirty to clean)

See Also:
Constant Field Values

NAME

public static final int NAME
DESModel was renamed

See Also:
Constant Field Values
Constructor Detail

DESModelMessage

public DESModelMessage(int eventType,
                       DESModel source)
Creates a change notification message for DESModels to pass to DESModelSubscribers.

Parameters:
eventType - DIRTY or CLEAN or NAME
source - message sender

DESModelMessage

public DESModelMessage(int eventType,
                       DESModel source,
                       java.lang.String message)
Creates a change notification message for DESModels to pass to DESModelSubscribers.

Parameters:
eventType - DIRTY or CLEAN or NAME
source - message sender
message - a description of the event fired
Method Detail

getEventType

public int getEventType()
Returns the type of event that occurred.

Returns:
the type of event that occurred

getSource

public DESModel getSource()
Returns the model that sent this message.

Returns:
the model that sent this message

getMessage

public java.lang.String getMessage()
Returns a string describing the message.

Returns:
a description of the change event