|
Re: View Toolbar button issue while SWTBot and Eclipse Juno [message #1006544 is a reply to message #1006450] |
Thu, 31 January 2013 15:49 |
|
On 01/31/2013 12:29 PM, Syamananda Singh wrote:
> Hi,
>
> I'm using Eclipse 4.2 with SWTBot 2.0.5 for testing my application.
> On trying to click on a Toolbar button of a view, it's throwing
> ava.lang.NoSuchMethodError:
> org.eclipse.ui.internal.PartPane.getToolBar()Lorg/eclipse/swt/widgets/Control.
>
>
> Below is my code :
>
> // At this point, the active view returned is Breakpoint point view
> SWTBotView activeView = bot.activeView(); // At this point, Breakpoint
> View has multiple breakpoints
> SWTBotToolbarButton toolbarButton = activeView.toolbarButton("Remove All
> Breakpoints");
>
> At the second line, the below exception is thrown :
>
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.NoSuchMethodError:
> org.eclipse.ui.internal.PartPane.getToolBar()Lorg/eclipse/swt/widgets/Control;)
That kind of error is typical of an API incompatibility: the method with
this signature used to be there and consumed by SWTBot or a dependency,
and is not present any more in Eclipse 4.2.
Could you please write a small test to reproduce this issue in the
org.eclipse.swtbot.eclipse.finder.test plugin and open a Bugzilla to
report it?
http://wiki.eclipse.org/SWTBot/Contributing
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
|
|
|
Powered by
FUDForum. Page generated in 0.02614 seconds