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, getModelUpdateStrategy, getName, getRight, getRootAdapterFactory, isAdapterForType, isThreeWay, removeCompareInputChangeListener, setDeferredAdapter
getTarget, unsetTarget
protected IChangeNotifier changeNotifier
IChangeNotifier
.protected IChangeNotifier delegateItemProvider
public TreeNodeCompareInput(AdapterFactory adapterFactory)
adapterFactory
- the given adapter factory.public void setTarget(Notifier target)
setTarget
in interface Adapter
setTarget
in class AdapterImpl
public 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 Adapter
notifyChanged
in interface INotifyChangedListener
notifyChanged
in class AdapterImpl
public void fireNotifyChanged(Notification notification)
Notifier
.fireNotifyChanged
in interface IChangeNotifier
public void addListener(INotifyChangedListener listener)
addListener
in interface IChangeNotifier
public void removeListener(INotifyChangedListener listener)
removeListener
in interface IChangeNotifier
public void dispose()
CompareInputAdapter
dispose
in interface IDisposable
dispose
in class CompareInputAdapter
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.