Using SWT Bot with GMF - GEF [message #487736] |
Thu, 24 September 2009 05:46  |
Eclipse User |
|
|
|
Hello Mariot,
I see that you are attending to make a presentation in the eclipse summit in Octobre 2009
(see http://www.eclipsecon.org/summiteurope2009/sessions?id=966)
In the overview you are refering about testing on GMF / GEF.
I wonder if you can send an example how to get the EditPart and navigate into it.
You are referring about the recent GEF support contribution.
I'm using the 2.0.0.394-dev-e34. Is it already containing the GMF / GEF support ?
Thanks a lot.
Ivan
|
|
|
|
Re: Using SWT Bot with GMF - GEF [message #530794 is a reply to message #487807] |
Fri, 30 April 2010 22:03   |
Eclipse User |
|
|
|
Hi Mariot, or others who may know ...
First, I'm having some trouble finding good examples of SWT-Bot code with GEF. I clicked on that link but it says the bug cannot be found.
Second, I have a situation where I am trying to test a GEF editor. and whenever the mouse is positioned in this GEF editor, without even clicking on anything, just hovering, a toolbar pops up (assuming the mouse isn't moving). However, SWT-Bot spy view doesn't change as I hover over the toolbar buttons.
It shows:
Location:
//Shell/-1//Composite/4//Composite/0//Composite/10//Composit e/0//Composite/0//FlyoutPaletteComposite/0//RulerComposite/2 //FigureCanvas/0
I tried accessing these buttons with the GEF toolBarButton API, using the tooltip string, but it does not recognize them. Any idea?
Finally, is there a way to search for objects created in the GEF editor, so that you can get their x,y positions? Say if you wanted to find a node so that you could then draw a line from that node to another node.
Thanks!
Steve
|
|
|
Re: Using SWT Bot with GMF - GEF [message #530948 is a reply to message #530794] |
Mon, 03 May 2010 03:14   |
Eclipse User |
|
|
|
Steven Chamberlin a écrit :
> Hi Mariot, or others who may know ...
>
> First, I'm having some trouble finding good examples of SWT-Bot code
> with GEF. I clicked on that link but it says the bug cannot be found.
You can find some examples of SWTBot tests on GMF editor in Bonita Open Solution code base [1].
> Finally, is there a way to search for objects created in the GEF editor,
> so that you can get their x,y positions? Say if you wanted to find a
> node so that you could then draw a line from that node to another node.
AFAIK, you'll have to use the "regular" GEF API to retrieve your diagram, browse it to find your nodes, and get locations from the figures of EditParts.
Regards,
--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
|
|
|
|
Powered by
FUDForum. Page generated in 0.06940 seconds