Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java b/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java
index c740ffff..7a378e30 100644..100755
--- a/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java
+++ b/org.eclipse.swtbot.eclipse.finder/src/org/eclipse/swtbot/eclipse/finder/widgets/SWTBotView.java
@@ -138,4 +138,18 @@ public class SWTBotView extends SWTBotWorkbenchPart<IViewReference> {
throw new WidgetNotFoundException("Could not find view menu with label " + label + " at index " + index, e); //$NON-NLS-1$ //$NON-NLS-2$
}
}
+
+ @Override
+ public void show() {
+ UIThreadRunnable.syncExec(new VoidResult() {
+ public void run() {
+ try {
+ partReference.getPage().activate(partReference.getPart(true));
+ partReference.getPage().showView(partReference.getId(), partReference.getSecondaryId(), IWorkbenchPage.VIEW_ACTIVATE);
+ } catch (PartInitException e) {
+ throw new RuntimeException("Could not show partReference - " + partReference.getPartName(), e); //$NON-NLS-1$
+ }
+ }
+ });
+ }
}

Back to the top