org.eclipse.emf.mapping.presentation
Class MappingEditor.MyDecoratorAdapterFactory

java.lang.Object
  extended byorg.eclipse.emf.edit.provider.DecoratorAdapterFactory
      extended byorg.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


Field Summary
protected  Action action
           
protected  boolean exclude
           
protected  Collection listeningItemProviderDecorators
           
protected  Action multipleColumnsAction
           
 
Fields inherited from class org.eclipse.emf.edit.provider.DecoratorAdapterFactory
changeNotifier, decoratedAdapterFactory, itemProviderDecorators, parentAdapterFactory
 
Constructor Summary
MappingEditor.MyDecoratorAdapterFactory(AdapterFactory adapterFactory, Action action, boolean exclude)
           
MappingEditor.MyDecoratorAdapterFactory(AdapterFactory adapterFactory, Action action, boolean exclude, Action multipleColumnsAction)
           
 
Method Summary
 Object adapt(Object o, Object t)
          All adapter creation is delegated to this method, which yields decorated item providers.
protected  IItemProviderDecorator createItemProviderDecorator(Object object, Object type)
          This is called when a new decorator is needed by adapt(Object,Object).
protected  void doMappedObjectRefresh(Object object)
           
protected  boolean doMappingRefresh(Object object)
           
 void fireNotifyChanged(Notification note)
          This calls notifyChanged for each listener.
 List getPrimaryMappedObjects(Mapping mapping)
           
 List getSecondaryMappedObjects(Mapping mapping)
           
 boolean isFactoryForType(Object t)
          This just delegates to the DecoratorAdapterFactory.decoratedAdapterFactory.
 
Methods inherited from class org.eclipse.emf.edit.provider.DecoratorAdapterFactory
adapt, adaptAllNew, adaptNew, addListener, dispose, getDecoratedAdapterFactory, getRootAdapterFactory, removeListener, setDecoratedAdapterFactory, setParentAdapterFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeningItemProviderDecorators

protected Collection listeningItemProviderDecorators

action

protected Action action

multipleColumnsAction

protected Action multipleColumnsAction

exclude

protected boolean exclude
Constructor Detail

MappingEditor.MyDecoratorAdapterFactory

public MappingEditor.MyDecoratorAdapterFactory(AdapterFactory adapterFactory,
                                               Action action,
                                               boolean exclude,
                                               Action multipleColumnsAction)

MappingEditor.MyDecoratorAdapterFactory

public MappingEditor.MyDecoratorAdapterFactory(AdapterFactory adapterFactory,
                                               Action action,
                                               boolean exclude)
Method Detail

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

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.