org.eclipse.xtext.xtext.launcher
Class WorkflowPropertyTester
java.lang.Object
org.eclipse.core.expressions.PropertyTester
org.eclipse.xtext.xtext.launcher.WorkflowPropertyTester
- All Implemented Interfaces:
- org.eclipse.core.expressions.IPropertyTester
public class WorkflowPropertyTester
- extends org.eclipse.core.expressions.PropertyTester
This property tester checks if there is a workflow file associated with the currently selected Xtext grammar file.
A workflow is considered being associated with a grammar file if:
- It resides in the same folder as the Xtext grammar file
- Its name is Generate<Name of Grammar>.mwe
- Author:
- Peter Friese - Initial contribution and API
Method Summary |
boolean |
test(java.lang.Object receiver,
java.lang.String property,
java.lang.Object[] args,
java.lang.Object expectedValue)
Executes the property test determined by the parameter property . |
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 |
WorkflowPropertyTester
public WorkflowPropertyTester()
test
public boolean test(java.lang.Object receiver,
java.lang.String property,
java.lang.Object[] args,
java.lang.Object expectedValue)
- Description copied from interface:
org.eclipse.core.expressions.IPropertyTester
- Executes the property test determined by the parameter
property
.
- Parameters:
receiver
- the receiver of the property testproperty
- the property to testargs
- additional arguments to evaluate the property. If no arguments are specified in
the test
expression an array of length 0 is passedexpectedValue
- the expected value of the property. The value is either of type
java.lang.String
or a boxed base type. If no value was specified in
the test
expressions then null
is passed
- Returns:
- returns
true
if the property is equal to the expected value; otherwise
false
is returned