TPTP 4.5.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.ui.internal.launch.shortcuts
Class LaunchPropertyTester

java.lang.Object
  extended by org.eclipse.core.expressions.PropertyTester
      extended by org.eclipse.hyades.test.ui.internal.launch.shortcuts.LaunchPropertyTester
All Implemented Interfaces:
org.eclipse.core.expressions.IPropertyTester

public class LaunchPropertyTester
extends org.eclipse.core.expressions.PropertyTester

This class is used by the PropertyTester extension point for evaluating the "isLaunchable" property. This property is used by the Launch Shortcut extension for determining whether a Run, Debug or Profile menu should be provided for the current selection. Starting with version 4.0, this property accepts an optional argument, the mode (i.e. run, debug or profile), since tests may be available in a subset of all available modes only.


Field Summary
static java.lang.String PROPERTY_IS_LAUNCHABLE
           
 
Constructor Summary
LaunchPropertyTester()
           
 
Method Summary
static java.lang.Object getRunnableItemFromElement(java.lang.Object element, java.lang.String mode)
          Consider an object (listed in a selection) and try to extract its underlying Test Suite object if it is possible.
 boolean test(java.lang.Object receiver, java.lang.String property, java.lang.Object[] args, java.lang.Object expectedValue)
           
 
Methods inherited from class org.eclipse.core.expressions.PropertyTester
handles, instantiate, internalCreateDescriptor, internalInitialize, isDeclaringPluginActive, isInstantiated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_IS_LAUNCHABLE

public static final java.lang.String PROPERTY_IS_LAUNCHABLE
See Also:
Constant Field Values
Constructor Detail

LaunchPropertyTester

public LaunchPropertyTester()
Method Detail

test

public boolean test(java.lang.Object receiver,
                    java.lang.String property,
                    java.lang.Object[] args,
                    java.lang.Object expectedValue)

getRunnableItemFromElement

public static java.lang.Object getRunnableItemFromElement(java.lang.Object element,
                                                          java.lang.String mode)
Consider an object (listed in a selection) and try to extract its underlying Test Suite object if it is possible.

Parameters:
element - Any object.
Returns:
A TPFTestSuite if the object is or is associated to a test suite, null otherwise.

TPTP 4.5.0 Testing Tools Project
Internal API Specification