org.eclipse.hyades.test.ui.internal.launch.shortcuts
Class LaunchPropertyTester
java.lang.Object
org.eclipse.core.expressions.PropertyTester
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.
|
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 |
PROPERTY_IS_LAUNCHABLE
public static final java.lang.String PROPERTY_IS_LAUNCHABLE
- See Also:
- Constant Field Values
LaunchPropertyTester
public LaunchPropertyTester()
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.