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:
- Matcher<T>, SelfDescribing
public class WithPartId<T extends IWorkbenchPartReference>
- extends AbstractMatcher<T>
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Ralf Ebert www.ralfebert.de (bug 271630)
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(Description description)
withPartId
public static <T extends IWorkbenchPartReference> 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> Matcher<T> withPartId(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