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
Modifier and TypeFieldDescriptionprotected IChangeNotifier
This is used to implementIChangeNotifier
.protected IChangeNotifier
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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 Details
-
changeNotifier
This is used to implementIChangeNotifier
. -
delegateItemProvider
-
-
Constructor Details
-
TreeNodeCompareInput
Constructor.- Parameters:
adapterFactory
- the given adapter factory.
-
-
Method Details
-
setTarget
- Specified by:
setTarget
in interfaceAdapter
- Overrides:
setTarget
in classAdapterImpl
-
notifyChanged
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
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
- Specified by:
addListener
in interfaceIChangeNotifier
-
removeListener
- 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
-