Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Customize drag'n'drop in SSE
Customize drag'n'drop in SSE [message #222560] Thu, 02 October 2008 12:41 Go to next message
Mikhail Kadan is currently offline Mikhail Kadan
Messages: 61
Registered: July 2009
Member
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 06:40 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2235
Registered: July 2009
Senior Member
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


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:JSP script parsing
Next Topic:Customize the MarkupTagInfoProvider for XML editor
Goto Forum:
  


Current Time: Fri Jul 25 02:56:31 EDT 2014

Powered by FUDForum. Page generated in 0.02170 seconds