| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.NotificationWrapper
org.eclipse.emf.edit.provider.ViewerNotification
A simple implementation of IViewerNotification that decorates an ordinary Notification.
Field Summary | |
protected boolean | contentRefresh
Whether the content under the element should be structurally refreshed. |
protected Object | element
The element to update or from which to refresh. |
protected boolean | labelUpdate
Whether the label and icon for the element should be updated. |
Fields inherited from class org.eclipse.emf.common.notify.NotificationWrapper |
notification, notifier |
Fields inherited from interface org.eclipse.emf.common.notify.Notification |
ADD, ADD_MANY, CREATE, EVENT_TYPE_COUNT, MOVE, NO_FEATURE_ID, NO_INDEX, REMOVE, REMOVE_MANY, REMOVING_ADAPTER, RESOLVE, SET, UNSET |
Constructor Summary | |
ViewerNotification(IViewerNotification viewerNotification,
Object element)
Wraps an existing viewer notification to specify a different element. | |
ViewerNotification(Notification decoratedNotification)
Creates a notification to fully refresh a viewer. | |
ViewerNotification(Notification decoratedNotification,
Object element)
Creates a notification to refresh the content under and update the label for the given element. | |
ViewerNotification(Notification decoratedNotification,
Object element,
boolean contentRefresh,
boolean labelUpdate)
Creates a notification to optionally refresh the content under and update the label for the given element. |
Method Summary | |
Object | getElement()
Returns the element to update or from which to refresh. |
boolean | isContentRefresh()
Returns whether the content under the element should be structurally refreshed. |
boolean | isLabelUpdate()
Returns whether the label and icon for the element should be updated. |
static Notification | wrapNotification(Notification notification,
Object element)
Wraps the given notification to make the given element be operated on by the viewer that receives it. |
Methods inherited from class org.eclipse.emf.common.notify.NotificationWrapper |
getEventType, getFeature, getFeatureID, getNewBooleanValue, getNewByteValue, getNewCharValue, getNewDoubleValue, getNewFloatValue, getNewIntValue, getNewLongValue, getNewShortValue, getNewStringValue, getNewValue, getNotifier, getOldBooleanValue, getOldByteValue, getOldCharValue, getOldDoubleValue, getOldFloatValue, getOldIntValue, getOldLongValue, getOldShortValue, getOldStringValue, getOldValue, getPosition, isReset, isTouch, merge, wasSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.notify.Notification |
getEventType, getFeature, getFeatureID, getNewBooleanValue, getNewByteValue, getNewCharValue, getNewDoubleValue, getNewFloatValue, getNewIntValue, getNewLongValue, getNewShortValue, getNewStringValue, getNewValue, getNotifier, getOldBooleanValue, getOldByteValue, getOldCharValue, getOldDoubleValue, getOldFloatValue, getOldIntValue, getOldLongValue, getOldShortValue, getOldStringValue, getOldValue, getPosition, isReset, isTouch, merge, wasSet |
Field Detail |
protected Object element
protected boolean contentRefresh
protected boolean labelUpdate
Constructor Detail |
public ViewerNotification(Notification decoratedNotification)
public ViewerNotification(Notification decoratedNotification, Object element)
public ViewerNotification(Notification decoratedNotification, Object element, boolean contentRefresh, boolean labelUpdate)
public ViewerNotification(IViewerNotification viewerNotification, Object element)
Method Detail |
public static Notification wrapNotification(Notification notification, Object element)
public Object getElement()
public boolean isContentRefresh()
public boolean isLabelUpdate()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |