TPTP 4.4.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.ui.adapter
Class TestAdapterFactory

java.lang.Object
  extended byorg.eclipse.hyades.test.ui.adapter.TestAdapterFactory
All Implemented Interfaces:
org.eclipse.core.runtime.IAdapterFactory, org.eclipse.hyades.ui.util.IDisposable

public class TestAdapterFactory
extends java.lang.Object
implements org.eclipse.core.runtime.IAdapterFactory, org.eclipse.hyades.ui.util.IDisposable

The Hyades Test adapter factory.

Since:
0.0.1

Field Summary
static TestAdapterFactory INSTANCE
          Singleton for TestAdapterFactory
 
Constructor Summary
protected TestAdapterFactory()
          Constructor for TestAdapterFactory
 
Method Summary
 void dispose()
           
 java.lang.Object getAdapter(java.lang.Object adaptableObject, java.lang.Class adapterType)
           
 java.lang.Class[] getAdapterList()
           
protected  org.eclipse.hyades.models.common.common.CMNNamedElement getCMNNamedElement(java.lang.Object adaptableObject)
          Returns the CMNNamedElement associated with a given adaptable object.
protected  org.eclipse.core.resources.IFile getFile(java.lang.Object adaptableObject)
          Deprecated.  
 org.eclipse.hyades.ui.adapter.IHyadesWorkbenchAdapter getHyadesWorkbenchAdapter()
          Returns the IHyadesWorkbenchAdapter used by this factory
protected  org.eclipse.hyades.ui.util.INamedElement getNamedElement(java.lang.Object adaptableObject)
          Returns the named element associated with a given adaptable object.
protected  org.eclipse.ui.IPersistableElement getPersistableElement(java.lang.Object adaptableObject)
          Returns the persisted element associated with a given adaptable object.
protected  org.eclipse.ui.views.properties.IPropertySource getPropertySource(java.lang.Object adaptableObject)
          Returns the property source associated with a given adaptable object.
protected  org.eclipse.core.resources.IResource getResource(java.lang.Object adaptableObject)
          Returns the resource associated with a given adaptable object.
protected  org.eclipse.hyades.ui.adapter.IHyadesWorkbenchAdapter getTestWorkbenchAdapter(java.lang.Object adaptableObject)
          Returns the Hyades workbench adapter associated with a given adaptable object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TestAdapterFactory INSTANCE
Singleton for TestAdapterFactory

Constructor Detail

TestAdapterFactory

protected TestAdapterFactory()
Constructor for TestAdapterFactory

Method Detail

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable
See Also:
IDisposable.dispose()

getHyadesWorkbenchAdapter

public org.eclipse.hyades.ui.adapter.IHyadesWorkbenchAdapter getHyadesWorkbenchAdapter()
Returns the IHyadesWorkbenchAdapter used by this factory

Returns:
IHyadesWorkbenchAdapter

getAdapterList

public java.lang.Class[] getAdapterList()
Specified by:
getAdapterList in interface org.eclipse.core.runtime.IAdapterFactory
See Also:
IAdapterFactory.getAdapterList()

getAdapter

public java.lang.Object getAdapter(java.lang.Object adaptableObject,
                                   java.lang.Class adapterType)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdapterFactory
See Also:
IAdapterFactory.getAdapter(java.lang.Object, java.lang.Class)

getCMNNamedElement

protected org.eclipse.hyades.models.common.common.CMNNamedElement getCMNNamedElement(java.lang.Object adaptableObject)
Returns the CMNNamedElement associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
CMNNamedElement

getTestWorkbenchAdapter

protected org.eclipse.hyades.ui.adapter.IHyadesWorkbenchAdapter getTestWorkbenchAdapter(java.lang.Object adaptableObject)
Returns the Hyades workbench adapter associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
IHyadesWorkbenchAdapter

getPropertySource

protected org.eclipse.ui.views.properties.IPropertySource getPropertySource(java.lang.Object adaptableObject)
Returns the property source associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
IPropertySource

getPersistableElement

protected org.eclipse.ui.IPersistableElement getPersistableElement(java.lang.Object adaptableObject)
Returns the persisted element associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
IPersistableElement

getNamedElement

protected org.eclipse.hyades.ui.util.INamedElement getNamedElement(java.lang.Object adaptableObject)
Returns the named element associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
IPropertySource

getFile

protected org.eclipse.core.resources.IFile getFile(java.lang.Object adaptableObject)
Deprecated.  

Returns the file associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
IPropertySource

getResource

protected org.eclipse.core.resources.IResource getResource(java.lang.Object adaptableObject)
Returns the resource associated with a given adaptable object.

Parameters:
adaptableObject -
Returns:
resource

TPTP 4.4.0 Testing Tools Project
Public API Specification