Package org.eclipse.ui.internal
Class PartTaggedAsEditorPropertyTester
java.lang.Object
org.eclipse.core.expressions.PropertyTester
org.eclipse.ui.internal.PartTaggedAsEditorPropertyTester
- All Implemented Interfaces:
IPropertyTester
Tests whether the object under test represents an MPart instance which is tagged as being one which represents an Editor (rather than a View).
This test is performed via a query of the tags associated with the MPart, and
checking whether this collection contains the
Workbench.EDITOR_TAG identifier.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.core.expressions.PropertyTester
handles, instantiate, internalCreateDescriptor, internalInitialize, isDeclaringPluginActive, isInstantiated
-
Constructor Details
-
PartTaggedAsEditorPropertyTester
public PartTaggedAsEditorPropertyTester()
-
-
Method Details
-
test
Description copied from interface:IPropertyTesterExecutes the property test determined by the parameterproperty.- Parameters:
receiver- the receiver of the property testproperty- the property to testargs- additional arguments to evaluate the property. If no arguments are specified in thetestexpression an array of length 0 is passedexpectedValue- the expected value of the property. The value is either of typejava.lang.Stringor a boxed base type. If no value was specified in thetestexpressions thennullis passed- Returns:
- returns
trueif the property is equal to the expected value; otherwisefalseis returned
-