|
|
Re: Using SWT Bot with GMF - GEF [message #530794 is a reply to message #487807] |
Sat, 01 May 2010 02:03 |
Steven Chamberlin Messages: 30 Registered: July 2009 |
Member |
|
|
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 07:14 |
|
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.04352 seconds