EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.internal.editor
Interface IPatternModificationNotification

All Known Implementing Classes:
DefaultPatternModificationNotification

public interface IPatternModificationNotification


Field Summary
static int ADDED
          A new element has been added.
static int REMOVED
          An element has been removed.
static int RENAMED
          An element has been renamed.
static int SAVED
          The model has been saved.
static int SET
          A value has been set to another one.
 
Method Summary
 int getEventType()
          Get the type of change that has occurred.
 Object getNewValue()
          Get the new value after the change occurred.
 Object getNotifier()
          Get the object affected by the change.
 Object getOldValue()
          Get the value before the change occurred.
 PatternHandler.PatternData getPatternData()
          Get pattern data scope attached to the event.
 

Field Detail

ADDED

static final int ADDED
A new element has been added.

See Also:
Constant Field Values

REMOVED

static final int REMOVED
An element has been removed.

See Also:
Constant Field Values

RENAMED

static final int RENAMED
An element has been renamed.

See Also:
Constant Field Values

SET

static final int SET
A value has been set to another one.

See Also:
Constant Field Values

SAVED

static final int SAVED
The model has been saved.

See Also:
Constant Field Values
Method Detail

getEventType

int getEventType()
Get the type of change that has occurred.
The valid types of events are defined by the constants in this class.

Returns:
the type of change that has occurred.

getPatternData

PatternHandler.PatternData getPatternData()
Get pattern data scope attached to the event.

Returns:

getNotifier

Object getNotifier()
Get the object affected by the change.
There might be none, in case of shared values modification for instance.

Returns:
null if no affected object could be provided.

getNewValue

Object getNewValue()
Get the new value after the change occurred.
The type of the value depends on the notifier and the event types.

Returns:

getOldValue

Object getOldValue()
Get the value before the change occurred.
The type of the value depends on the notifier and the event types.

Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.