g-Eclipse
Release 1.0.0

eu.geclipse.core.model
Interface IGridModelEvent


public interface IGridModelEvent

Definition of Grid model events that are used to track changes on the model, i.e. addition of new elements and deletion of existing elements. Move operations are represented by to events, a deletion followed by an addition.


Field Summary
static int ELEMENTS_ADDED
          ID for an element add operation.
static int ELEMENTS_CHANGED
          ID for an element changed operation.
static int ELEMENTS_REMOVED
          ID for an element remove operation.
static int PROJECT_CLOSED
          ID for an project closed operation.
static int PROJECT_FOLDER_CHANGED
          ID for the change of a project folder.
static int PROJECT_OPENED
          ID for an project opened operation.
 
Method Summary
 IGridElement[] getElements()
          Get the affected elements.
 IGridElement getSource()
          Get the source of the event.
 int getType()
          Get the type of this event.
 

Field Detail

ELEMENTS_ADDED

static final int ELEMENTS_ADDED
ID for an element add operation.

See Also:
Constant Field Values

ELEMENTS_REMOVED

static final int ELEMENTS_REMOVED
ID for an element remove operation.

See Also:
Constant Field Values

ELEMENTS_CHANGED

static final int ELEMENTS_CHANGED
ID for an element changed operation.

See Also:
Constant Field Values

PROJECT_OPENED

static final int PROJECT_OPENED
ID for an project opened operation.

See Also:
Constant Field Values

PROJECT_CLOSED

static final int PROJECT_CLOSED
ID for an project closed operation.

See Also:
Constant Field Values

PROJECT_FOLDER_CHANGED

static final int PROJECT_FOLDER_CHANGED
ID for the change of a project folder.

See Also:
Constant Field Values
Method Detail

getElements

IGridElement[] getElements()
Get the affected elements.

Returns:
The elements that were added/removed.

getSource

IGridElement getSource()
Get the source of the event.

Returns:
The parent where the elements were added/removed.

getType

int getType()
Get the type of this event.

Returns:
The event's type.

g-Eclipse
Release 1.0.0