org.eclipse.swtbot.swt.finder.matchers
Class WithMnemonic<T extends Widget>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher<T>
org.eclipse.swtbot.swt.finder.matchers.WithMnemonic<T>
- All Implemented Interfaces:
- Matcher<T>, SelfDescribing
public class WithMnemonic<T extends Widget>
- extends AbstractMatcher<T>
Matches Widget
s with the specified text. Skips mnemonics, so "Username" will match
items with text "&Username" and "User&name"
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
Method Summary |
void |
describeTo(Description description)
|
protected boolean |
doMatch(Object obj)
Subclasses must override, this is the actual method that does the matching |
static
|
withMnemonic(String text)
Matches a widget that has the specified text, after striping the mnemonics "&" |
describeTo
public void describeTo(Description description)
doMatch
protected boolean doMatch(Object obj)
- 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 Widget>
- Parameters:
obj
- the item to match.
- Returns:
true
if the item matches, false
otherwise.
withMnemonic
public static <T extends Widget> Matcher<T> withMnemonic(String text)
- Matches a widget that has the specified text, after striping the mnemonics "&"
- Parameters:
text
- the text.
- Returns:
- a matcher.
- Since:
- 2.0