g-Eclipse
Release 1.0.0

eu.geclipse.workflow.provider
Class WorkflowItemProviderAdapterFactory

java.lang.Object
  extended by AdapterFactoryImpl
      extended by eu.geclipse.workflow.util.WorkflowAdapterFactory
          extended by eu.geclipse.workflow.provider.WorkflowItemProviderAdapterFactory

public class WorkflowItemProviderAdapterFactory
extends WorkflowAdapterFactory

This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this factory convert EMF adapter notifications into calls to fireNotifyChanged. The adapters also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances.


Constructor Summary
WorkflowItemProviderAdapterFactory()
          This constructs an instance
 
Method Summary
 Adapter adapt(Notifier notifier, java.lang.Object type)
          This implementation substitutes the factory itself as the key for the adapter
 void addListener(INotifyChangedListener notifyChangedListener)
          This adds a listener
 Adapter createIInputPortAdapter()
          This creates an adapter for a eu.geclipse.workflow.IInputPort
 Adapter createILinkAdapter()
          This creates an adapter for a ILink.
 Adapter createIOutputPortAdapter()
          This creates an adapter for a eu.geclipse.workflow.IOutputPort
 Adapter createIWorkflowAdapter()
          This creates an adapter for a IWorkflow.
 Adapter createIWorkflowJobAdapter()
          This creates an adapter for a eu.geclipse.workflow.IWorkflowJob
 void fireNotifyChanged(Notification notification)
          This delegates to changeNotifier and to parentAdapterFactory.
 ComposeableAdapterFactory getRootAdapterFactory()
          This returns the root adapter factory that contains this factory.
 boolean isFactoryForType(java.lang.Object type)
           
 void removeListener(INotifyChangedListener notifyChangedListener)
          This removes a listener
 void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
          This sets the composed adapter factory that contains this factory.
 
Methods inherited from class eu.geclipse.workflow.util.WorkflowAdapterFactory
createAdapter, createEObjectAdapter, createIPortAdapter, createIWorkflowElementAdapter, createIWorkflowNodeAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowItemProviderAdapterFactory

public WorkflowItemProviderAdapterFactory()
This constructs an instance.

Method Detail

createILinkAdapter

public Adapter createILinkAdapter()
This creates an adapter for a ILink.

Overrides:
createILinkAdapter in class WorkflowAdapterFactory
Returns:
the new adapter.
See Also:
eu.geclipse.workflow.ILink

createIInputPortAdapter

public Adapter createIInputPortAdapter()
This creates an adapter for a eu.geclipse.workflow.IInputPort.

Overrides:
createIInputPortAdapter in class WorkflowAdapterFactory
Returns:
the new adapter.
See Also:
eu.geclipse.workflow.IInputPort

createIOutputPortAdapter

public Adapter createIOutputPortAdapter()
This creates an adapter for a eu.geclipse.workflow.IOutputPort.

Overrides:
createIOutputPortAdapter in class WorkflowAdapterFactory
Returns:
the new adapter.
See Also:
eu.geclipse.workflow.IOutputPort

createIWorkflowAdapter

public Adapter createIWorkflowAdapter()
This creates an adapter for a IWorkflow.

Overrides:
createIWorkflowAdapter in class WorkflowAdapterFactory
Returns:
the new adapter.
See Also:
eu.geclipse.workflow.IWorkflow

createIWorkflowJobAdapter

public Adapter createIWorkflowJobAdapter()
This creates an adapter for a eu.geclipse.workflow.IWorkflowJob.

Overrides:
createIWorkflowJobAdapter in class WorkflowAdapterFactory
Returns:
the new adapter.
See Also:
eu.geclipse.workflow.IWorkflowJob

getRootAdapterFactory

public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.


setParentAdapterFactory

public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.


isFactoryForType

public boolean isFactoryForType(java.lang.Object type)

Overrides:
isFactoryForType in class WorkflowAdapterFactory
Returns:
whether this factory is applicable for the type of the object.

adapt

public Adapter adapt(Notifier notifier,
                     java.lang.Object type)
This implementation substitutes the factory itself as the key for the adapter.


addListener

public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.


removeListener

public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.


fireNotifyChanged

public void fireNotifyChanged(Notification notification)
This delegates to changeNotifier and to parentAdapterFactory.


g-Eclipse
Release 1.0.0