Skip to main content



      Home
Home » Eclipse Projects » GEF » SelectEditPartTracker
SelectEditPartTracker [message #41250] Mon, 11 November 2002 10:33 Go to next message
Eclipse UserFriend
From one of the previous posting it said SelectEditPartTracker(),which
doesn't allow dragging. So I override EditPart.getDragTracker() to return
the SelectEditPartTracker().

But I still can select the editpart, it shows a NorthSouth cursor and when I
drag the mouse, it shows a "shadow" of the figure as i move. Only when I
release the mouse, it goes back to the original position.

How can I subpressed GEF so that it does not show feedback as user moves the
mouse?
Re: SelectEditPartTracker [message #41378 is a reply to message #41250] Mon, 11 November 2002 15:44 Go to previous message
Eclipse UserFriend
Originally posted by: hudsonr.us.eye-bee-em.com

You'll have to open a bugzilla for this. It looks like it doesn't really
matter what you return from getDragTracker(), because there is always the
possibility that you select some other EditPart during a multi-select drag.
In this case, we should probably be checking to see if every selected
EditPart understands REQ_MOVE, and if it doesn't, don't allow the move.

Also, as far as feedback, maybe you shouldn't be using
NonResizableEditPolicy or its subclass. Both of these are for use with
dragging. Create your own SelectionEditPolicy. Typically non-draggable
items should look similar to a TreeItem or ListItem, *without* selection
handles.

"yinglcs" <yinglcs@netscape.com> wrote in message
news:aqogkp$hlr$1@rogue.oti.com...
>
> From one of the previous posting it said SelectEditPartTracker(),which
> doesn't allow dragging. So I override EditPart.getDragTracker() to return
> the SelectEditPartTracker().
>
> But I still can select the editpart, it shows a NorthSouth cursor and when
I
> drag the mouse, it shows a "shadow" of the figure as i move. Only when I
> release the mouse, it goes back to the original position.
>
> How can I subpressed GEF so that it does not show feedback as user moves
the
> mouse?
>
>
>
Previous Topic:Bolding tooltip as a feedback
Next Topic:getLocation() method in GEF
Goto Forum:
  


Current Time: Wed Jul 16 04:44:25 EDT 2025

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

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

Back to the top