Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTabItem.java')
-rw-r--r--org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTabItem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTabItem.java b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTabItem.java
index ffb8f642..d3cc00e8 100644
--- a/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTabItem.java
+++ b/org.eclipse.swtbot.swt.finder/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotTabItem.java
@@ -70,7 +70,7 @@ public class SWTBotTabItem extends AbstractSWTBot<TabItem> {
*/
public SWTBotTabItem activate() throws TimeoutException {
log.trace(MessageFormat.format("Activating {0}", this)); //$NON-NLS-1$
- assertEnabled();
+ waitForEnabled();
// this runs in sync because tabFolder.setSelection() does not send a notification, and so should not block.
asyncExec(new VoidResult() {
public void run() {
@@ -111,7 +111,7 @@ public class SWTBotTabItem extends AbstractSWTBot<TabItem> {
public boolean isEnabled() {
return syncExec(new BoolResult() {
public Boolean run() {
- return widget.getParent().isEnabled();
+ return parent.isEnabled();
}
});
}

Back to the top