Skip to main content



      Home
Home » Eclipse Projects » SWTBot » How accessing to context Menu of a SWTBotGefEditPart
How accessing to context Menu of a SWTBotGefEditPart [message #802733] Mon, 20 February 2012 06:23 Go to next message
Eclipse UserFriend
Hello,

In my SWTBotGefEditor, I have many SWTBotGefEditPart.
If I right-click on one of them, I get a context menu. The menu contains "Delete", "Properties"....fonctions.
How can I access to the context menu of a SWTBotGefEditPart, so as I can click on "Delete" fonction for example?

Thank you for your help.
Re: How accessing to context Menu of a SWTBotGefEditPart [message #821333 is a reply to message #802733] Thu, 15 March 2012 04:01 Go to previous message
Eclipse UserFriend
Hi,

Try the follow code:

FigureCanvas canvas = (FigureCanvas)
(gefBot.gefEditor("xxx").rootEditPart().part().getViewer().getControl());
SWTBotGefFigureCanvas gefCanvas = new SWTBotGefFigureCanvas(canvas);
assertTrue(gefCanvas.contextMenu("xxx").isEnabled());

Hope this can help you.
Previous Topic:Drag&Drop SWTBotTreeItem to SWTBotGefEditor
Next Topic:Problem executing SWTbot+Junit4 test
Goto Forum:
  


Current Time: Thu Jul 24 16:53:37 EDT 2025

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

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

Back to the top