org.eclipse.swtbot.eclipse.finder.matchers
Class WithPerspectiveId

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<IPerspectiveDescriptor>
          extended by org.eclipse.swtbot.eclipse.finder.matchers.WithPerspectiveId
All Implemented Interfaces:
Matcher<IPerspectiveDescriptor>, SelfDescribing

public class WithPerspectiveId
extends AbstractMatcher<IPerspectiveDescriptor>

Since:
2.0
Version:
$Id$
Author:
Ralf Ebert www.ralfebert.de (bug 271630)

Field Summary
 
Fields inherited from class org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher
log
 
Method Summary
 void describeTo(Description description)
           
 boolean doMatch(Object item)
          Subclasses must override, this is the actual method that does the matching
static WithPerspectiveId withPerspectiveId(Matcher<String> idMatcher)
          Matches a perspective with the specified id.
static WithPerspectiveId withPerspectiveId(String id)
          Matches a perspective with the specified id.
 
Methods inherited from class org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher
matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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(Description description)

withPerspectiveId

public static WithPerspectiveId withPerspectiveId(String id)
Matches a perspective with the specified id.

Parameters:
id - the id of the perspective.
Returns:
a matcher.
Since:
2.0

withPerspectiveId

public static WithPerspectiveId withPerspectiveId(Matcher<String> idMatcher)
Matches a perspective with the specified id.

Parameters:
idMatcher - the matcher that matches the id of the perspective.
Returns:
a matcher.
Since:
2.0