Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » "Link cursor" when dragging parts in outline view
"Link cursor" when dragging parts in outline view [message #237179] Wed, 25 July 2007 08:35
Marian Schedenig is currently offline Marian SchedenigFriend
Messages: 25
Registered: July 2009
Junior Member
Hi!

In my outline view I'm showing a few edit parts which can be linked by
dragging one on top of the other. To show the user that this is a link
operation and not (as with most other edit parts) a move, I want to show
the link mouse cursor (like the one Windows' Explorer displays when
dragging a file as a link).

I've run into two problems:

1) I tried attaching a drag tracker to my edit part, but
calculateCursor() gets called only once, and the resulting cursor is
never displayed (or so briefly that I cannot see it). The current tool
is repeatedly asked for its cursor, but that also isn't displayed as
soon as a drag operation is in progress. But I haven't been able to find
out who is providing the cursor that actually gets displayed.

2) How do I create the link cursor? "Real" drag & drop operations
display it correctly when required, but I can't find a matching style
constant in the Cursor class.

Thx,
Marian.
Previous Topic:How to drag-drop between editors
Next Topic:draw2d: label follows figure
Goto Forum:
  


Current Time: Thu Apr 25 11:04:34 GMT 2024

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

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

Back to the top