Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Working with FigureCanvas
Working with FigureCanvas [message #1786721] Wed, 09 May 2018 20:13 Go to next message
Lutz Wrage is currently offline Lutz WrageFriend
Messages: 162
Registered: July 2009
Senior Member
I have view with a FigureCanvas. Can I use SWTBot to find a figure and then click inside that figure? The eclipse spy view stops at the FigureCanvas.
Re: Working with FigureCanvas [message #1786723 is a reply to message #1786721] Wed, 09 May 2018 20:27 Go to previous message
Patrick Tasse is currently offline Patrick TasseFriend
Messages: 75
Registered: July 2009
Member
Hi Lutz,

I have never used it, but it seems to be part of the org.eclipse.swtbot.eclipse.gef feature.

I think you would have to get a new SWTGefBot(), and from there get the SWTBotGefViewer from it's title, and the viewer has a protected method getCanvas() that returns a SWTBotGefFigureCanvas?

You might want to look at org.eclipse.gef.examples.logic.test plug-in for some hints on how to use that.

Patrick
Previous Topic:SWTBot Command line Framework installation
Next Topic:How to get progress bar shell in swtbot?
Goto Forum:
  


Current Time: Mon Jul 13 09:41:55 GMT 2020

Powered by FUDForum. Page generated in 0.01490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top