org.eclipse.swtbot.eclipse.finder.matchers
Class WithPartId<T extends IWorkbenchPartReference>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
org.eclipse.swtbot.eclipse.finder.matchers.WithPartId<T>
- All Implemented Interfaces:
- org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing
public class WithPartId<T extends IWorkbenchPartReference>
- extends AbstractMatcher<T>
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Ralf Ebert www.ralfebert.de (bug 271630)
|
Method Summary |
void |
describeTo(org.hamcrest.Description description)
|
boolean |
doMatch(Object item)
Subclasses must override, this is the actual method that does the matching |
static
|
withPartId(org.hamcrest.Matcher<String> idMatcher)
Matches a workbench part (view/editor) with the specified id. |
static
|
withPartId(String id)
Matches a workbench part (view/editor) with the specified id. |
| Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
doMatch
public boolean doMatch(Object item)
- Description copied from class:
AbstractMatcher
- Subclasses must override, this is the actual method that does the matching
- Specified by:
doMatch in class AbstractMatcher<T extends IWorkbenchPartReference>
- Parameters:
item - the item to match.
- Returns:
true if the item matches, false otherwise.
describeTo
public void describeTo(org.hamcrest.Description description)
withPartId
public static <T extends IWorkbenchPartReference> org.hamcrest.Matcher<T> withPartId(String id)
- Matches a workbench part (view/editor) with the specified id.
- Parameters:
id - the id of the part.
- Returns:
- a matcher.
- Since:
- 2.0
withPartId
public static <T extends IWorkbenchPartReference> org.hamcrest.Matcher<T> withPartId(org.hamcrest.Matcher<String> idMatcher)
- Matches a workbench part (view/editor) with the specified id.
- Parameters:
idMatcher - the part id matcher.
- Returns:
- a matcher.
- Since:
- 2.0