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: 135
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: 54
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:Filling a tree with test data?
Goto Forum:
  


Current Time: Mon Sep 24 08:20:35 GMT 2018

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

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

Back to the top