diff options
Diffstat (limited to 'org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarPushButton.java')
-rw-r--r-- | org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarPushButton.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarPushButton.java b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarPushButton.java index d232e151..ea7594cf 100644 --- a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarPushButton.java +++ b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToolbarPushButton.java @@ -24,7 +24,8 @@ import org.hamcrest.SelfDescribing; /** * @author Mariot Chauvin <mariot [dot] chauvin [at] obeo [dot] fr> */ -@SWTBotWidget(clasz = ToolItem.class, style = @Style(name="SWT.PUSH", value=SWT.PUSH), preferredName = "toolbarButton", referenceBy = { ReferenceBy.MNEMONIC, ReferenceBy.TOOLTIP }) +@SWTBotWidget(clasz = ToolItem.class, style = @Style(name = "SWT.PUSH", value = SWT.PUSH), preferredName = "toolbarButton", referenceBy = { + ReferenceBy.MNEMONIC, ReferenceBy.TOOLTIP }, returnType = SWTBotToolbarButton.class) public class SWTBotToolbarPushButton extends SWTBotToolbarButton { /** @@ -56,7 +57,7 @@ public class SWTBotToolbarPushButton extends SWTBotToolbarButton { */ public SWTBotToolbarPushButton click() { log.debug(MessageFormat.format("Clicking on {0}", this)); //$NON-NLS-1$ - assertEnabled(); + waitForEnabled(); sendNotifications(); log.debug(MessageFormat.format("Clicked on {0}", this)); //$NON-NLS-1$ return this; |