| SWTBotViewMenu's click is not working [message #874662] |
Mon, 21 May 2012 06:27  |
Aparna Argade Messages: 12 Registered: October 2010 |
Junior Member |
|
|
I've to click View menus contributed by Eclipse platform, e.g. Eclipse Breakpoint view's "Show Full Paths" menu.
My code-
SWTBotViewMenu showFullPathsMenu = bpView.menu("Show Full &Paths");
showFullPathsMenu.click();
Here the click action does not happen. Also I get the exception stack mentioned below.
How to solve this problem?
As this menu is contributed by Eclipse platform, I cannot change its code. So I've to somethings in swtbot side.
Thanks,
Aparna
Exception stack-
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.RuntimeException: Failed to execute the command - org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction)
at org.eclipse.swt.SWT.error(SWT.java:4282)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITestApplication.java:54)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.RuntimeException: Failed to execute the command - org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction
at org.eclipse.swtbot.eclipse.finder.widgets.SWTBotViewMenu$1.run(SWTBotViewMenu.java:125)
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable$5.doRun(UIThreadRunnable.java:221)
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable$1.run(UIThreadRunnable.java:89)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
... 24 more
Caused by: org.eclipse.core.commands.common.NotDefinedException: Trying to execute a command that is not defined. org.eclipse.cdt.debug.internal.ui.actions.ShowFullPathsAction
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:458)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:178)
at org.eclipse.swtbot.eclipse.finder.widgets.SWTBotViewMenu$1.run(SWTBotViewMenu.java:123)
... 28 more
|
|
|
|
Powered by
FUDForum. Page generated in 0.04377 seconds