Skip to main content



      Home
Home » Eclipse Projects » GEF » DnD ResourceTransfer from PackageExplorer?
DnD ResourceTransfer from PackageExplorer? [message #116042] Fri, 06 February 2004 05:08 Go to next message
Eclipse UserFriend
Originally posted by: trogowsk.student.uni-kassel.de

Hi,

I want to realize DnD from a PackageExplorer to an Editor. e.g. I want to
select a java-file and dnd it to the Editor. The Editor-Adapter should get
the IResource from the dropped java-file or a maybe an IJavaElement.
Thank you in advance.

Bye
Re: DnD ResourceTransfer from PackageExplorer? [message #116312 is a reply to message #116042] Mon, 09 February 2004 22:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Have you read the article on drag and drop in GEF? See the reference
section at our homepage.

"Thomas" <trogowsk@student.uni-kassel.de> wrote in message
news:bvvp3f$17q$1@eclipse.org...
> Hi,
>
> I want to realize DnD from a PackageExplorer to an Editor. e.g. I want to
> select a java-file and dnd it to the Editor. The Editor-Adapter should get
> the IResource from the dropped java-file or a maybe an IJavaElement.
> Thank you in advance.
>
> Bye
>
Re: DnD ResourceTransfer from PackageExplorer? [message #117490 is a reply to message #116312] Fri, 13 February 2004 04:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trogowsk.student.uni-kassel.de

Randy Hudson wrote:

> Have you read the article on drag and drop in GEF? See the reference
> section at our homepage.

Yes, I did. But this article use a transfer inside a tree. I mean you can
move nodes to other nodes.
My Problem is, that I want to have a DND from a PackageExplorer to an
Editor.
This DND should use the ResourceTransfer but it doesn't work only the
FileTransfer works.

Bye
Re: DnD ResourceTransfer from PackageExplorer? [message #117516 is a reply to message #116312] Fri, 13 February 2004 05:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trogowsk.student.uni-kassel.de

Randy Hudson wrote:

> Have you read the article on drag and drop in GEF? See the reference
> section at our homepage.

ok, I solved the ResourceTransfer between PackageExplorer and Editor.
Thank you for your answer. But now I a have a new problem!!!

I discovered a strange behavior with the Resource DND. First time I drag
the
the resource to the Editor with DND.DND_COPY. The Resource exists now in
the
PackageExlporerer and in the Editor. BUT after restarting Eclipse, this
class
shows an DND.DND_MOVE behavoir. That means the resource only exists in the
Editor and the resource in the PakckageExplorer is deleted.

Have you an idea?

regards

Thomas
Re: DnD ResourceTransfer from PackageExplorer? [message #117626 is a reply to message #117516] Fri, 13 February 2004 14:33 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Man, I've been doing this for so long I start seeing the same quesitons over
and over ;-)

J/K saw your other post. Sounds like a possible bug, or your code which
sets to COPY is not running on subsequent DND operations.

"Thomas" <trogowsk@student.uni-kassel.de> wrote in message
news:c0i9mb$8te$1@eclipse.org...
> Randy Hudson wrote:
>
> > Have you read the article on drag and drop in GEF? See the reference
> > section at our homepage.
>
> ok, I solved the ResourceTransfer between PackageExplorer and Editor.
> Thank you for your answer. But now I a have a new problem!!!
>
> I discovered a strange behavior with the Resource DND. First time I drag
> the
> the resource to the Editor with DND.DND_COPY. The Resource exists now in
> the
> PackageExlporerer and in the Editor. BUT after restarting Eclipse, this
> class
> shows an DND.DND_MOVE behavoir. That means the resource only exists in the
> Editor and the resource in the PakckageExplorer is deleted.
>
> Have you an idea?
>
> regards
>
> Thomas
>
Previous Topic:[Newbie Question] Trees as a child figure?
Next Topic:test
Goto Forum:
  


Current Time: Tue May 06 19:15:54 EDT 2025

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

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

Back to the top