Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Using SWT Bot with GMF - GEF
Using SWT Bot with GMF - GEF [message #487736] Thu, 24 September 2009 09:46 Go to next message
Truong Ivan is currently offline Truong IvanFriend
Messages: 10
Registered: July 2009
Junior Member
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 #487807 is a reply to message #487736] Thu, 24 September 2009 13:22 Go to previous messageGo to next message
Mariot Chauvin is currently offline Mariot ChauvinFriend
Messages: 174
Registered: July 2009
Senior Member
Hi Ivan,

Thanks for your interest for SWTBot GEF/GMF support.
Comments below

Truong Ivan a écrit :
> 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)
>

Yes I will be there :)

> 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.

Please have a look to the code attached to https://bugs.eclipse.org/bugs/show_bug.cgi?id=269609.
You will find an example.

>
> 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 ?

I committed yesterday the code into the SWTBot svn. I need now to work with ketan to build the new plugin.
So it's not included in 2.0.0.394-dev-e34.

>
> Thanks a lot.
> Ivan
>
>
>

Regards,

Mariot
Re: Using SWT Bot with GMF - GEF [message #530794 is a reply to message #487807] Sat, 01 May 2010 02:03 Go to previous messageGo to next message
Steven Chamberlin is currently offline Steven ChamberlinFriend
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 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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
Re: Using SWT Bot with GMF - GEF [message #530951 is a reply to message #530948] Mon, 03 May 2010 07:28 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Sorry, missed the link to example: http://www.bonitasoft.org/websvn/filedetails.php?repname=Bon ita+Open+Solution&path=%2Fbonita-studio%2Ftrunk%2Ftests% 2Forg.bonitasoft.studio.diagram.test%2Fsrc%2Forg%2Fbonitasof t%2Fstudio%2Fdiagram%2Ftest%2FDiagramTests.java

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Previous Topic:junit4 headless doesn't seem to work with CDT master zip plugin
Next Topic:RCP with SWTBOT
Goto Forum:
  


Current Time: Fri Mar 29 08:03:25 GMT 2024

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

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

Back to the top