Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Accessing the menu of a palette tool that creates more than one figure(it pops up after a left-click, but what kind of widget is it?)
Accessing the menu of a palette tool that creates more than one figure [message #901996] Wed, 15 August 2012 08:47 Go to next message
Christoph Zwirello is currently offline Christoph Zwirello
Messages: 8
Registered: July 2012
Junior Member
hi,

in my GEF/GMF application, I have several tools in my palette which can create more than one figure on the canvas. When I activate such a tool and click on the canvas, I get a menu where I can select from the list of possible figures (see attachment for a screenshot). Upon selection, the figure is drawn on the canvas.

The menu looks like a context menu, but I can't access it using the following code:

SWTBotGefEditor editor = gefbot.gefEditor("<my file>");
editor.clickContextMenu("<the option I want to chose from the menu");

I also tried clicking at the coordinates where my option presumably is located, but that didn't work, and I suspect that the SWTBotGefEditPart I used doesn't even know about that menu:

SWTBotGefEditPart part = editor.getEditPart("General");
part.click(new Point(160,585));

So, now I'm stuck with my SWTBot tests. Is this kind of "multi-purpose tool" that I use in my palette really that rare, that I simply isn't supported yet? Or am I doing something wrong?

Any comments would be greatly appreciated.
Chris

[Updated on: Mon, 20 August 2012 08:31]

Report message to a moderator

Re: Accessing the menu of a palette tool that creates more than one figure [message #908510 is a reply to message #901996] Wed, 05 September 2012 09:55 Go to previous messageGo to next message
Christoph Zwirello is currently offline Christoph Zwirello
Messages: 8
Registered: July 2012
Junior Member
to be more precise:

Christoph Zwirello wrote on Wed, 15 August 2012 08:47
hi,

in my GEF/GMF application, I have several tools in my palette which can create more than one figure on the canvas. When I activate such a tool and click on the canvas, I get a menu where I can select from the list of possible figures (see attachment for a screenshot). Upon selection, the figure is drawn on the canvas.


this is the case when a "Tool entry" (in the "Gen Editor->Gen Diagram->Palette" section of a *.gmfgen file) has more than one item in its "Gen Nodes" list.

anybody?
Re: Accessing the menu of a palette tool that creates more than one figure [message #984244 is a reply to message #908510] Wed, 14 November 2012 09:33 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

I ran into the same problem Did you find a solution?

Ralph
Re: Accessing the menu of a palette tool that creates more than one figure [message #984249 is a reply to message #984244] Wed, 14 November 2012 09:36 Go to previous messageGo to next message
Christoph Zwirello is currently offline Christoph Zwirello
Messages: 8
Registered: July 2012
Junior Member
nope. I don't think there is one, which is why I created a new bug at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389156

but nobody seems to care...
Re: Accessing the menu of a palette tool that creates more than one figure [message #987583 is a reply to message #984249] Tue, 27 November 2012 04:14 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 737
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi Christoph,

On 11/14/2012 03:36 PM, Christoph Zwirello wrote:
> nope. I don't think there is one, which is why I created a new bug at
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=389156

Thanks for opening bug!

> but nobody seems to care...

In such case, I advise you to get a look at the internal of the issues
and propose some patches or comment the issue with as much helpful info
as you can get. Contributors are working on several projects and can't
find time to help on this issue right now.
SWTBot is very open to your code contributions!
http://wiki.eclipse.org/SWTBot/Contributing

That said, let's continue discussion on the bug to find out a decent
workaround or patch all together ;)
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Accessing the menu of a palette tool that creates more than one figure [message #987591 is a reply to message #987583] Tue, 27 November 2012 04:38 Go to previous message
Christoph Zwirello is currently offline Christoph Zwirello
Messages: 8
Registered: July 2012
Junior Member
Mickael Istria wrote on Tue, 27 November 2012 04:14
Hi Christoph,

In such case, I advise you to get a look at the internal of the issues
and propose some patches or comment the issue with as much helpful info
as you can get.
Contributors are working on several projects and can't
find time to help on this issue right now.
SWTBot is very open to your code contributions!

sure. I never expect FOSS ppl to jump to my rescue in no time, but when a bug report doesn't even get a comment from the devs you don't even know if the project is still maintained or not. a simple "no time to work on that in the next 3-4 months, sry" would have sufficed.
anyway, thanks you took some time to look at the issue!

Previous Topic:Find controls when GMF context menu is displayed
Next Topic:Unable to change perspective using SWTbot and Juno
Goto Forum:
  


Current Time: Tue Jul 29 21:00:40 EDT 2014

Powered by FUDForum. Page generated in 0.01941 seconds