public class TreeNodeCompareInput extends CompareInputAdapter implements INotifyChangedListener, IChangeNotifier
Adapter.Internal| Modifier and Type | Field and Description |
|---|---|
protected IChangeNotifier |
changeNotifier
This is used to implement
IChangeNotifier. |
protected IChangeNotifier |
delegateItemProvider |
target| Constructor and Description |
|---|
TreeNodeCompareInput(AdapterFactory adapterFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(INotifyChangedListener listener) |
void |
dispose()
This will remove this adapter from all its the targets and dispose any remaining children wrappers in
the children store.
|
void |
fireNotifyChanged(Notification notification)
This convenience method converts the arguments into an appropriate update call on the viewer.
|
void |
notifyChanged(Notification notification)
This handles notification by calling
fireNotifyChanged. |
void |
removeListener(INotifyChangedListener listener) |
void |
setTarget(Notifier target) |
addCompareInputChangeListener, copy, fireChange, getAccessorFactoryForTarget, getAdapter, getAdapterFactory, getAncestor, getComparisonObject, getImage, getKind, getLeft, getName, getRight, getRootAdapterFactory, isAdapterForType, isThreeWay, removeCompareInputChangeListener, setDeferredAdaptergetTarget, unsetTargetprotected IChangeNotifier changeNotifier
IChangeNotifier.protected IChangeNotifier delegateItemProvider
public TreeNodeCompareInput(AdapterFactory adapterFactory)
adapterFactory - the given adapter factory.public void setTarget(Notifier target)
setTarget in interface AdaptersetTarget in class AdapterImplpublic void notifyChanged(Notification notification)
fireNotifyChanged. This
will also be called by the delegateItemProvider when it normally fires a notification to its
adapter factory; the listener method is hooked up in setTarget. Notifications are
wrapped to look like they originate from the target.notifyChanged in interface AdapternotifyChanged in interface INotifyChangedListenernotifyChanged in class AdapterImplpublic void fireNotifyChanged(Notification notification)
Notifier.fireNotifyChanged in interface IChangeNotifierpublic void addListener(INotifyChangedListener listener)
addListener in interface IChangeNotifierpublic void removeListener(INotifyChangedListener listener)
removeListener in interface IChangeNotifierpublic void dispose()
CompareInputAdapterdispose in interface IDisposabledispose in class CompareInputAdapter
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.