org.eclipse.emf.mapping.presentation
Class MappingEditor.MyDecoratorAdapterFactory
java.lang.Object
org.eclipse.emf.edit.provider.DecoratorAdapterFactory
org.eclipse.emf.mapping.presentation.MappingEditor.MyDecoratorAdapterFactory
- All Implemented Interfaces:
- AdapterFactory, ComposeableAdapterFactory, IChangeNotifier, IDisposable
- Direct Known Subclasses:
- MappingEditor.OverviewDecoratorAdapterFactory
- Enclosing class:
- MappingEditor
- protected class MappingEditor.MyDecoratorAdapterFactory
- extends DecoratorAdapterFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeningItemProviderDecorators
protected Collection listeningItemProviderDecorators
action
protected Action action
multipleColumnsAction
protected Action multipleColumnsAction
exclude
protected boolean exclude
MappingEditor.MyDecoratorAdapterFactory
public MappingEditor.MyDecoratorAdapterFactory(AdapterFactory adapterFactory,
Action action,
boolean exclude,
Action multipleColumnsAction)
MappingEditor.MyDecoratorAdapterFactory
public MappingEditor.MyDecoratorAdapterFactory(AdapterFactory adapterFactory,
Action action,
boolean exclude)
isFactoryForType
public boolean isFactoryForType(Object t)
- Description copied from class:
DecoratorAdapterFactory
- This just delegates to the
DecoratorAdapterFactory.decoratedAdapterFactory
.
- Specified by:
isFactoryForType
in interface AdapterFactory
- Overrides:
isFactoryForType
in class DecoratorAdapterFactory
adapt
public Object adapt(Object o,
Object t)
- Description copied from class:
DecoratorAdapterFactory
- All adapter creation is delegated to this method, which yields decorated item providers.
It hooks up the decorators created by
DecoratorAdapterFactory.createItemProviderDecorator(java.lang.Object, java.lang.Object)
to the adapters returned by DecoratorAdapterFactory.decoratedAdapterFactory
.
- Specified by:
adapt
in interface AdapterFactory
- Overrides:
adapt
in class DecoratorAdapterFactory
doMappingRefresh
protected boolean doMappingRefresh(Object object)
doMappedObjectRefresh
protected void doMappedObjectRefresh(Object object)
getPrimaryMappedObjects
public List getPrimaryMappedObjects(Mapping mapping)
getSecondaryMappedObjects
public List getSecondaryMappedObjects(Mapping mapping)
createItemProviderDecorator
protected IItemProviderDecorator createItemProviderDecorator(Object object,
Object type)
- Description copied from class:
DecoratorAdapterFactory
- This is called when a new decorator is needed by
DecoratorAdapterFactory.adapt(Object,Object)
.
- Specified by:
createItemProviderDecorator
in class DecoratorAdapterFactory
fireNotifyChanged
public void fireNotifyChanged(Notification note)
- Description copied from interface:
IChangeNotifier
- This calls
notifyChanged
for each listener.
- Specified by:
fireNotifyChanged
in interface IChangeNotifier
- Overrides:
fireNotifyChanged
in class DecoratorAdapterFactory