Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Drag project from Navigator(Need to drag project form Navigator to my View)
Drag project from Navigator [message #803416] Tue, 21 February 2012 10:14 Go to next message
Agata Vackova is currently offline Agata VackovaFriend
Messages: 10
Registered: February 2012
Junior Member
Does it exist a way to extend drag possibilities of Navigator view? I'd like to be able to drag a project from Navigator to my View. I can drag folders or files, but can't drag projects. Thank you in advance for any help.
Re: Drag project from Navigator [message #804153 is a reply to message #803416] Wed, 22 February 2012 09:05 Go to previous message
Agata Vackova is currently offline Agata VackovaFriend
Messages: 10
Registered: February 2012
Junior Member
Any idea? I've browsed the code a bit and found in org.eclipse.ui.views.navigator.NavigatorDragAdapter.dragStart(DragSourceEvent):
            if (!(next instanceof IFile || next instanceof IFolder)) {
                event.doit = false;
                return;
            }

So I would need to override the drag behaviour, but it is impossible as when trying to add the dragSupport to an element, that has it, ERROR_CANNOT_INIT_DRAG is thrown (unable to initiate drag source; this will occur if more than one drag source is created for a control ...)
Previous Topic:RCP Application designed with multiple plugins
Next Topic:How to filter RCP key bindings like escape key ?
Goto Forum:
  


Current Time: Sat Nov 28 18:03:59 GMT 2020

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

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

Back to the top