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 IChangeNotifierchangeNotifierThis is used to implementIChangeNotifier.protected IChangeNotifierdelegateItemProvider-
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 voidaddListener(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)voidsetTarget(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:
setTargetin interfaceAdapter- Overrides:
setTargetin classAdapterImpl
-
notifyChanged
public void notifyChanged(Notification notification)
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
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:
fireNotifyChangedin interfaceIChangeNotifier
-
addListener
public void addListener(INotifyChangedListener listener)
- Specified by:
addListenerin interfaceIChangeNotifier
-
removeListener
public void removeListener(INotifyChangedListener listener)
- 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
-
-