Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to detect drop location ?
icon5.gif  How to detect drop location ? [message #482513] Wed, 26 August 2009 20:42 Go to next message
Rencana Tarigan is currently offline Rencana TariganFriend
Messages: 56
Registered: July 2009
Location: Bandung, Indonesia
Member

Hi all,
can somebody tell me how to get drop location when drag finished ?
i have source code :
DragSource source = new DragSource(table, DND.DROP_MOVE);
source.setTransfer(new Transfer[] { FileTransfer.getInstance() });

source.addDragListener(new DragSourceListener() {
  @Override
  public void dragFinished(DragSourceEvent event) {
  }

  @Override
  public void dragSetData(DragSourceEvent event) {
  }

  @Override
  public void dragStart(DragSourceEvent event) {	
    event.image = imageForFile;
    event.data = pathFileToDropped;    }
}



Re: How to detect drop location ? [message #482935 is a reply to message #482513] Fri, 28 August 2009 15:13 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Rencana/J
Re: How to detect drop location ? [message #483069 is a reply to message #482935] Sun, 30 August 2009 19:58 Go to previous messageGo to next message
Rencana Tarigan is currently offline Rencana TariganFriend
Messages: 56
Registered: July 2009
Location: Bandung, Indonesia
Member

Grant Gayed wrote on Fri, 28 August 2009 11:13
Rencana/J


???


Re: How to detect drop location ? [message #483194 is a reply to message #483069] Mon, 31 August 2009 14:17 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Looks like your reader got tripped up on the character following the "/J".
The content was:

There is not currently support for this. If you want you can log a Feature
Request with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT&bug_severity=enhancement .

Grant


"Rencana Tarigan" <rencana_tarigan@yahoo.co.id> wrote in message
news:h7elm4$1g7$1@build.eclipse.org...
> Grant Gayed wrote on Fri, 28 August 2009 11:13
> > Rencana/J
>
>
> ???
Re: How to detect drop location ? [message #483333 is a reply to message #483194] Tue, 01 September 2009 08:09 Go to previous message
Rencana Tarigan is currently offline Rencana TariganFriend
Messages: 56
Registered: July 2009
Location: Bandung, Indonesia
Member

I already report it at https://bugs.eclipse.org/bugs/show_bug.cgi?id=288222
Smile

Grant Gayed wrote on Mon, 31 August 2009 10:17
Looks like your reader got tripped up on the character following the "/J".
The content was:

There is not currently support for this. If you want you can log a Feature
Request with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT&bug_severity=enhancement .

Grant


"Rencana Tarigan" <rencana_tarigan@yahoo.co.id> wrote in message
news:h7elm4$1g7$1@build.eclipse.org...
> Grant Gayed wrote on Fri, 28 August 2009 11:13
> > Rencana/J
>
>
> ???



Previous Topic:Accessing composite componets from another composite
Next Topic:drag n drop: How to change the text, which is shown during drag
Goto Forum:
  


Current Time: Thu Apr 25 17:57:38 GMT 2024

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

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

Back to the top