Skip to main content



      Home
Home » Eclipse Projects » GEF » Selecting multiple editparts at 1 time with 1 click
Selecting multiple editparts at 1 time with 1 click [message #122249] Mon, 15 March 2004 03:01 Go to next message
Eclipse UserFriend
Originally posted by: snowice.asiamail.com

Hi,

==================================
|
Selecting multiple editparts at 1 time with 1 click [message #122265 is a reply to message #122249] Mon, 15 March 2004 03:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: snowice.asiamail.com

Evon wrote:

Hi,
|
V
==================================
| | ///////////// |
| | //////////// |
==================================
| | ///////////// |
| | //////////// |
==================================

I i want to achieve a similar effort like the above which is the similar
to the setting of a table in Microsoft Word.When the mouse hover above a
column, te cursor changes to the one shown above (an arrow pointing
downwards) and upon mouse click, the entire column is selected. What do i
need to do to achieve this effect.

Please enlighten,
Regards,
Evon
Re: Selecting multiple editparts at 1 time with 1 click [message #122310 is a reply to message #122249] Mon, 15 March 2004 06:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brian.fernandes.codito.com

Hi Evon,

I'm not sure exactly what EditParts you're using for your table - but you
have to override
getDragTracker(Request req) in your EditPart and return a customized drag
Tracker.

Your tracker should mostly extend SelectEditPartTracker and override the
performSelection method . You can easily use
EditPartViewer viewer = getCurrentViewer(); to get the current view and
methods like EditPartViewer#appendToSelection to modify the current
selection.

Have a look at how the SelectEditPartTracker is written and the methods
available in EditPartViewer as well.

To change the cursor - set the cursor for your figure using
IFigure#setCursor

All the best,
Brian.
Re: Selecting multiple editparts at 1 time with 1 click [message #122352 is a reply to message #122310] Mon, 15 March 2004 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Or the DragTracker could return the new Cursor whenever it was appropriate
by over-riding getDefaultCursor() or calculateCursor().

>
> To change the cursor - set the cursor for your figure using
> IFigure#setCursor
>
> All the best,
> Brian.
>
>
Re: Selecting multiple editparts at 1 time with 1 click [message #122385 is a reply to message #122352] Mon, 15 March 2004 09:59 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The drag tracker won't take effect until it is actually loaded on mouse
down.
> by over-riding getDefaultCursor() or calculateCursor().
Or use setDefaultCursor(Cursor)
Previous Topic:BundleException in 3.0M7
Next Topic:Connection suggestion
Goto Forum:
  


Current Time: Tue Jul 22 08:37:42 EDT 2025

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

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

Back to the top