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
FieldsModifier and TypeFieldDescriptionprotected IChangeNotifierThis is used to implementIChangeNotifier.protected IChangeNotifierFields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(INotifyChangedListener listener) voiddispose()This will remove this adapter from all its the targets and dispose any remaining children wrappers in the children store.voidfireNotifyChanged(Notification notification) This convenience method converts the arguments into an appropriate update call on the viewer.voidnotifyChanged(Notification notification) This handles notification by callingfireNotifyChanged.voidremoveListener(INotifyChangedListener listener) voidMethods 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, setDeferredAdapterMethods 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:
setTargetin interfaceAdapter- Overrides:
setTargetin classAdapterImpl
-
notifyChanged
This handles notification by callingfireNotifyChanged. This will also be called by thedelegateItemProviderwhen 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:
notifyChangedin interfaceAdapter- Specified by:
notifyChangedin interfaceINotifyChangedListener- Overrides:
notifyChangedin 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:
fireNotifyChangedin interfaceIChangeNotifier
-
addListener
- Specified by:
addListenerin interfaceIChangeNotifier
-
removeListener
- Specified by:
removeListenerin interfaceIChangeNotifier
-
dispose
public void dispose()Description copied from class:CompareInputAdapterThis will remove this adapter from all its the targets and dispose any remaining children wrappers in the children store.- Specified by:
disposein interfaceIDisposable- Overrides:
disposein classCompareInputAdapter
-