MarqueeDragTracker request [message #48454] |
Fri, 06 December 2002 15:22 |
Eclipse User |
|
|
|
Originally posted by: Vadim.Strizhevsky._at_.morganstanley.com
Hi,
I'd like to have a MarqueeDragTracker, (that I return from my
RootEditPart) to select all items that are only partially touched by the
marquee rectangle, not
only the ones that are completely inside. I hope I'm not missing something
simple (again ;), but the only way I was able to achieve this was to
duplicate MarqueeSelectionTool and MarqueeDragTracker, and change one line
in calculateNewSelection() function to do an or check on all 4 corners.
Because this function and many others that it uses and used by other
protected fucntions are private it wasn't possible to do this in a
subclass. It would be nice if MarqueeSelectionTool either provided an
option to do "partial-touch" selection or was modified to be more readily
subclassable. I hate to have to copy the whole class just to change one
line of behavior.
Thanks a lot.
-Vadim
|
|
|
Powered by
FUDForum. Page generated in 0.08537 seconds