Customize drag'n'drop in SSE [message #222560] |
Thu, 02 October 2008 16:41  |
Eclipse User |
|
|
|
Hello.
I need to customized drag'n'drop behaviour in SSE when I drag an item from
Project Explorer and drop it to SSE's source page. Default behaviour is to
insert file's path from the project root and it's name, and I need to
customize it depending which item I drop and where I drop it. Where can I
see some examples for this fuctionality?
Thanks.
|
|
|
Re: Customize drag'n'drop in SSE [message #222575 is a reply to message #222560] |
Mon, 06 October 2008 10:40  |
Eclipse User |
|
|
|
Mikhail Kadan wrote:
> I need to customized drag'n'drop behaviour in SSE when I drag an item
> from Project Explorer and drop it to SSE's source page. Default
> behaviour is to insert file's path from the project root and it's name,
> and I need to customize it depending which item I drop and where I drop
> it. Where can I see some examples for this fuctionality?
The org.eclipse.wst.sse.ui.dropTargetTransfers extension point where
this is currently implemented lacks that kind of flexibility. The
platform's ITextEditorDropTargetListener, which is what we should be
switching over to at some point, also lacks that granularity. You
may be able to override the default behavior by using the extension
point yourself with your own editor's ID as the targetID attribute,
but I don't think we've tried it that way before.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
|
|
|
Powered by
FUDForum. Page generated in 0.05078 seconds