Accessing the menu of a palette tool that creates more than one figure [message #901996] |
Wed, 15 August 2012 08:47  |
Eclipse User |
|
|
|
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] by Moderator
|
|
|
|
|
|
|
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  |
Eclipse User |
|
|
|
Mickael Istria wrote on Tue, 27 November 2012 04:14Hi 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!
|
|
|
Powered by
FUDForum. Page generated in 0.05271 seconds