Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Customize drag'n'drop in SSE
Customize drag'n'drop in SSE [message #222560] Thu, 02 October 2008 16:41 Go to next message
Mikhail Kadan is currently offline Mikhail KadanFriend
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 10:40 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2703
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 Emerging Technologies
Previous Topic:JSP script parsing
Next Topic:Customize the MarkupTagInfoProvider for XML editor
Goto Forum:
  


Current Time: Fri Jul 29 18:19:14 GMT 2016

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

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