Skip to main content



      Home
Home » Eclipse Projects » SWTBot » Drag&Drop SWTBotTreeItem to SWTBotGefEditor(How can we simulate teh drag&drop of a tree item to a getEditor)
Drag&Drop SWTBotTreeItem to SWTBotGefEditor [message #808261] Mon, 27 February 2012 10:39 Go to next message
Eclipse UserFriend
Hello,

I could not find examples that can help me to test a functionality Drag&Drop a SWTBotTreeItem to SWTBotGefEditor.
Can you please help me to define SWTBotGefEditor as a drop target?
I did find example of Table as Drop target, but not SWTBotGefEditor.
My Drag&Drop functionality, selects a SWTBotTreeItem, darg it to a SWTBotGefEditor, the drop adds an image into my SWTBotGefEditor.

Thank you.
Re: Drag&Drop SWTBotTreeItem to SWTBotGefEditor [message #821317 is a reply to message #808261] Thu, 15 March 2012 03:35 Go to previous message
Eclipse UserFriend
Execuse me i can not follow you clearly.
I use the follow code to test "function Drag&Drop":

SWTBotGefEditor editor = gefBot.gefEditor(editorName);
editor.activateTool(functionName);
editor.drag(20, 20, 20, 20);// drop the function

hope this can help you.

Previous Topic:SWTBotTreeItem#select() is not working as it should?
Next Topic:How accessing to context Menu of a SWTBotGefEditPart
Goto Forum:
  


Current Time: Sun Jul 27 16:30:59 EDT 2025

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

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

Back to the top