Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:39 Go to next message
empiret empiret is currently offline empiret empiretFriend
Messages: 3
Registered: February 2012
Junior Member
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 07:35 Go to previous message
benhu Missing name is currently offline benhu Missing nameFriend
Messages: 14
Registered: October 2010
Junior Member

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 Nov 23 10:00:57 GMT 2014

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

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