org.eclipse.emf.edit.provider
Class ItemProvider.ItemProviderNotification

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.NotificationImpl
      extended by org.eclipse.emf.edit.provider.ItemProvider.ItemProviderNotification
All Implemented Interfaces:
Notification, NotificationChain, IViewerNotification
Enclosing class:
ItemProvider

public class ItemProvider.ItemProviderNotification
extends NotificationImpl
implements IViewerNotification

This class implements a Notification for an ItemProvider.


Field Summary
protected  boolean isContentRefresh
           
protected  boolean isLabelUpdate
           
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotificationImpl
eventType, IS_SET_CHANGE_INDEX, newIEEEPrimitiveValue, newSimplePrimitiveValue, newValue, next, oldIEEEPrimitiveValue, oldSimplePrimitiveValue, oldValue, position, PRIMITIVE_TYPE_BOOLEAN, PRIMITIVE_TYPE_BYTE, PRIMITIVE_TYPE_CHAR, PRIMITIVE_TYPE_DOUBLE, PRIMITIVE_TYPE_FLOAT, PRIMITIVE_TYPE_INT, PRIMITIVE_TYPE_LONG, PRIMITIVE_TYPE_OBJECT, PRIMITIVE_TYPE_SHORT, primitiveType
 
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
ItemProvider.ItemProviderNotification(int eventType, java.lang.Object oldValue, java.lang.Object newValue, int position)
           
ItemProvider.ItemProviderNotification(int eventType, java.lang.Object oldValue, java.lang.Object newValue, int position, boolean wasSet)
           
ItemProvider.ItemProviderNotification(int eventType, java.lang.Object oldValue, java.lang.Object newValue, int position, boolean wasSet, boolean isContentRefesh, boolean isLabelUpdate)
           
 
Method Summary
 void dispatch()
          Dispatches each notification to the appropriate notifier via Notifier.eNotify.
 java.lang.Object getElement()
          The element to update or from which to refresh.
 java.lang.Object getNotifier()
          Returns the object affected by the change.
 boolean isContentRefresh()
          Whether the content under the element should be structurally refreshed.
 boolean isLabelUpdate()
          Whether the label and icon for the element should be updated.
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotificationImpl
add, getEventType, getFeature, getFeatureDefaultValue, getFeatureID, getNewBooleanValue, getNewByteValue, getNewCharValue, getNewDoubleValue, getNewFloatValue, getNewIntValue, getNewLongValue, getNewShortValue, getNewStringValue, getNewValue, getOldBooleanValue, getOldByteValue, getOldCharValue, getOldDoubleValue, getOldFloatValue, getOldIntValue, getOldLongValue, getOldShortValue, getOldStringValue, getOldValue, getPosition, isFeatureUnsettable, isReset, isTouch, merge, toString, wasSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, getOldBooleanValue, getOldByteValue, getOldCharValue, getOldDoubleValue, getOldFloatValue, getOldIntValue, getOldLongValue, getOldShortValue, getOldStringValue, getOldValue, getPosition, isReset, isTouch, merge, wasSet
 

Field Detail

isContentRefresh

protected boolean isContentRefresh

isLabelUpdate

protected boolean isLabelUpdate
Constructor Detail

ItemProvider.ItemProviderNotification

public ItemProvider.ItemProviderNotification(int eventType,
                                             java.lang.Object oldValue,
                                             java.lang.Object newValue,
                                             int position)

ItemProvider.ItemProviderNotification

public ItemProvider.ItemProviderNotification(int eventType,
                                             java.lang.Object oldValue,
                                             java.lang.Object newValue,
                                             int position,
                                             boolean wasSet)

ItemProvider.ItemProviderNotification

public ItemProvider.ItemProviderNotification(int eventType,
                                             java.lang.Object oldValue,
                                             java.lang.Object newValue,
                                             int position,
                                             boolean wasSet,
                                             boolean isContentRefesh,
                                             boolean isLabelUpdate)
Method Detail

getNotifier

public java.lang.Object getNotifier()
Description copied from interface: Notification
Returns the object affected by the change.

Specified by:
getNotifier in interface Notification
Overrides:
getNotifier in class NotificationImpl
Returns:
the object affected by the change.

dispatch

public void dispatch()
Description copied from interface: NotificationChain
Dispatches each notification to the appropriate notifier via Notifier.eNotify.

Specified by:
dispatch in interface NotificationChain
Overrides:
dispatch in class NotificationImpl

getElement

public java.lang.Object getElement()
Description copied from interface: IViewerNotification
The element to update or from which to refresh. The whole viewer is indicated by the null value.

Specified by:
getElement in interface IViewerNotification

isContentRefresh

public boolean isContentRefresh()
Description copied from interface: IViewerNotification
Whether the content under the element should be structurally refreshed.

Specified by:
isContentRefresh in interface IViewerNotification

isLabelUpdate

public boolean isLabelUpdate()
Description copied from interface: IViewerNotification
Whether the label and icon for the element should be updated.

Specified by:
isLabelUpdate in interface IViewerNotification

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.