Class TreeNodeCompareInput
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterImpl
-
- org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.CompareInputAdapter
-
- org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.provider.TreeNodeCompareInput
-
- All Implemented Interfaces:
org.eclipse.compare.structuremergeviewer.ICompareInput
,org.eclipse.core.runtime.IAdaptable
,Adapter
,Adapter.Internal
,IChangeNotifier
,IDisposable
,INotifyChangedListener
public class TreeNodeCompareInput extends CompareInputAdapter implements INotifyChangedListener, IChangeNotifier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
-
Field Summary
Fields Modifier and Type Field Description protected IChangeNotifier
changeNotifier
This is used to implementIChangeNotifier
.protected IChangeNotifier
delegateItemProvider
-
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
-
-
Constructor Summary
Constructors Constructor Description TreeNodeCompareInput(AdapterFactory adapterFactory)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 callingfireNotifyChanged
.void
removeListener(INotifyChangedListener listener)
void
setTarget(Notifier target)
-
Methods inherited from class org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.CompareInputAdapter
addCompareInputChangeListener, copy, fireChange, getAccessorFactoryForTarget, getAdapter, getAdapterFactory, getAncestor, getComparisonObject, getImage, getKind, getLeft, getModelUpdateStrategy, getName, getRight, getRootAdapterFactory, isAdapterForType, isThreeWay, removeCompareInputChangeListener, setDeferredAdapter
-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, unsetTarget
-
-
-
-
Field Detail
-
changeNotifier
protected IChangeNotifier changeNotifier
This is used to implementIChangeNotifier
.
-
delegateItemProvider
protected IChangeNotifier delegateItemProvider
-
-
Constructor Detail
-
TreeNodeCompareInput
public TreeNodeCompareInput(AdapterFactory adapterFactory)
Constructor.- Parameters:
adapterFactory
- the given adapter factory.
-
-
Method Detail
-
setTarget
public void setTarget(Notifier target)
- Specified by:
setTarget
in interfaceAdapter
- Overrides:
setTarget
in classAdapterImpl
-
notifyChanged
public void notifyChanged(Notification notification)
This handles notification by callingfireNotifyChanged
. This will also be called by thedelegateItemProvider
when it normally fires a notification to its adapter factory; the listener method is hooked up insetTarget
. Notifications are wrapped to look like they originate from the target.- Specified by:
notifyChanged
in interfaceAdapter
- Specified by:
notifyChanged
in interfaceINotifyChangedListener
- Overrides:
notifyChanged
in classAdapterImpl
-
fireNotifyChanged
public void fireNotifyChanged(Notification notification)
This convenience method converts the arguments into an appropriate update call on the viewer. The event type is a value from the static constants inNotifier
.- Specified by:
fireNotifyChanged
in interfaceIChangeNotifier
-
addListener
public void addListener(INotifyChangedListener listener)
- Specified by:
addListener
in interfaceIChangeNotifier
-
removeListener
public void removeListener(INotifyChangedListener listener)
- Specified by:
removeListener
in interfaceIChangeNotifier
-
dispose
public void dispose()
Description copied from class:CompareInputAdapter
This will remove this adapter from all its the targets and dispose any remaining children wrappers in the children store.- Specified by:
dispose
in interfaceIDisposable
- Overrides:
dispose
in classCompareInputAdapter
-
-