TPTP 4.4.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.ui.navigator
Class DefaultTypedElementProxyFactory

java.lang.Object
  extended byorg.eclipse.hyades.test.ui.navigator.DefaultTypedElementProxyFactory
All Implemented Interfaces:
IPersistableTypedElementProxyFactory, ITypedElementProxyFactory

public class DefaultTypedElementProxyFactory
extends java.lang.Object
implements IPersistableTypedElementProxyFactory

Factory used to create default proxies for typed elements Clients may extend this class and override only the methods that should not create the default proxy nodes.

Since:
4.0

Constructor Summary
DefaultTypedElementProxyFactory()
           
 
Method Summary
 IProxyNode create(org.eclipse.hyades.models.common.testprofile.TPFExecutionResult result, java.lang.Object parent)
          Create a new proxy node from an execution result.
 IProxyNode create(org.eclipse.hyades.models.common.testprofile.TPFTestComponent component, java.lang.Object parent)
          Create a new proxy node from a test component.
 IProxyNode create(org.eclipse.hyades.models.common.testprofile.TPFTest test, java.lang.Object parent)
          Create a proxy node from a test element, mainly: TPFTestSuite TPFTestCase
 IProxyNode recreate(org.eclipse.ui.IMemento memento, java.lang.Object parent)
          Returns the proxy node built based on the content of the given memento.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTypedElementProxyFactory

public DefaultTypedElementProxyFactory()
Method Detail

recreate

public IProxyNode recreate(org.eclipse.ui.IMemento memento,
                           java.lang.Object parent)
Description copied from interface: IPersistableTypedElementProxyFactory
Returns the proxy node built based on the content of the given memento.

Specified by:
recreate in interface IPersistableTypedElementProxyFactory
Parameters:
memento - The content of the proxy persisted.
parent - the parent object of the new typed element proxy node.
Returns:
proxy a new typed element proxy node instance loaded based on the content of the given memento.
See Also:
IPersistableTypedElementProxyFactory.recreate(org.eclipse.ui.IMemento, java.lang.Object)

create

public IProxyNode create(org.eclipse.hyades.models.common.testprofile.TPFExecutionResult result,
                         java.lang.Object parent)
Description copied from interface: ITypedElementProxyFactory
Create a new proxy node from an execution result.

Specified by:
create in interface ITypedElementProxyFactory
Parameters:
result - the execution result to convert from.
parent - the parent of the new proxy.
Returns:
the new proxy that represents the given execution result element in the navigator.
See Also:
ITypedElementProxyFactory.create(org.eclipse.hyades.models.common.testprofile.TPFExecutionResult, java.lang.Object)

create

public IProxyNode create(org.eclipse.hyades.models.common.testprofile.TPFTest test,
                         java.lang.Object parent)
Description copied from interface: ITypedElementProxyFactory
Create a proxy node from a test element, mainly:
  • TPFTestSuite
  • TPFTestCase
  • Specified by:
    create in interface ITypedElementProxyFactory
    Parameters:
    test - the element to convert from.
    parent - the parent of the new proxy.
    Returns:
    the new proxy that represents the given test element in the navigator.
    See Also:
    ITypedElementProxyFactory.create(org.eclipse.hyades.models.common.testprofile.TPFTest, java.lang.Object)

    create

    public IProxyNode create(org.eclipse.hyades.models.common.testprofile.TPFTestComponent component,
                             java.lang.Object parent)
    Description copied from interface: ITypedElementProxyFactory
    Create a new proxy node from a test component.

    Specified by:
    create in interface ITypedElementProxyFactory
    Parameters:
    component - the test component to convert from.
    parent - the parent of the new proxy.
    Returns:
    the new proxy that represents the given test component element in the navigator.
    See Also:
    ITypedElementProxyFactory.create(org.eclipse.hyades.models.common.testprofile.TPFTestComponent, java.lang.Object)

    TPTP 4.4.0 Testing Tools Project
    Public API Specification