|Accessing the menu of a palette tool that creates more than one figure [message #901996]
||Wed, 15 August 2012 12:47
| Christoph Zwirello
Registered: July 2012
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");
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.
[Updated on: Mon, 20 August 2012 12:31]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03275 seconds