org.eclipse.swtbot.eclipse.finder.matchers
Class WithPerspectiveLabel
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<IPerspectiveDescriptor>
org.eclipse.swtbot.eclipse.finder.matchers.WithPerspectiveLabel
- All Implemented Interfaces:
- org.hamcrest.Matcher<IPerspectiveDescriptor>, org.hamcrest.SelfDescribing
public class WithPerspectiveLabel
- extends AbstractMatcher<IPerspectiveDescriptor>
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Ralf Ebert www.ralfebert.de (bug 271630)
| 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<IPerspectiveDescriptor>
- Parameters:
item - the item to match.
- Returns:
true if the item matches, false otherwise.
describeTo
public void describeTo(org.hamcrest.Description description)
withPerspectiveLabel
public static WithPerspectiveLabel withPerspectiveLabel(String label)
- Matches a perspective with the specified label.
- Parameters:
label - the label of the perspective.
- Returns:
- a matcher.
- Since:
- 2.0
withPerspectiveLabel
public static WithPerspectiveLabel withPerspectiveLabel(org.hamcrest.Matcher<String> labelMatcher)
- Matches a perspective with the specified label.
- Parameters:
labelMatcher - the matcher that matches the perspective label.
- Returns:
- a matcher.
- Since:
- 2.0