Skip to main content



      Home
Home » Eclipse Projects » GEF » Unification of Marquee and selection tool
- Unification of Marquee and selection tool [message #13979] Thu, 18 July 2002 09:32 Go to next message
Eclipse UserFriend
Hi
i'm using the selection and marquee tools in my palette, and i was
wandering is there a way to not use them at all (i.e., the user will not
need to select Selection or Marquee from the palette), but the default
behaviour will be some sort of unification between them, i.e., upon click
there will be a selection behaviour, but if there was a mouse button down,
and then draging, then the behavioiur will be as a marquee, creation a
rectangle of selection.
thanks
yoav
- Re: Unification of Marquee and selection tool [message #13981 is a reply to message #13979] Thu, 18 July 2002 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

The logic example does this.

"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:ah6g26$nn4$1@rogue.oti.com...
> Hi
> i'm using the selection and marquee tools in my palette, and i was
> wandering is there a way to not use them at all (i.e., the user will not
> need to select Selection or Marquee from the palette), but the default
> behaviour will be some sort of unification between them, i.e., upon click
> there will be a selection behaviour, but if there was a mouse button down,
> and then draging, then the behavioiur will be as a marquee, creation a
> rectangle of selection.
> thanks
> yoav
>
- Re: Unification of Selection and Connection tool [message #13985 is a reply to message #13981] Thu, 18 July 2002 15:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mfrose.caredatasystems.com

Okay, color me dense, but I can't figure out where or how the logic example
is making this happen.

Which is okay, because I'm after something a little different; a simple
click makes a Selection happen, which is fine, but I need a drag to start a
connection on the EditPart I'm pointed at. Is there any class/method in the
logic example to start me toward an answer? Does my entire EditPart need to
be a connection terminal for anything connection-related to happen?

advTHANKSance.

MFR

"Randy Hudson" <none@ibm.com> wrote in message
news:ah6j8u$q73$1@rogue.oti.com...
> The logic example does this.
>
> "Yoav Rubin" <yoav@il.ibm.com> wrote in message
> news:ah6g26$nn4$1@rogue.oti.com...
> > Hi
> > [...]i was
> > wandering is there a way to not use them at all (i.e., the user will not
> > need to select Selection or Marquee from the palette), but the default
> > behaviour will be some sort of unification between them, i.e., upon
click
> > there will be a selection behaviour, but if there was a mouse button
down,
> > and then draging, then the behavioiur will be as a marquee, creation a
> > rectangle of selection.
> > thanks
> > yoav
- Re: Unification of Selection and Connection tool [message #13987 is a reply to message #13985] Thu, 18 July 2002 18:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

"Martin Rose" <mfrose@caredatasystems.com> wrote in message
news:ah74j5$5d2$1@rogue.oti.com...
> Okay, color me dense, but I can't figure out where or how the logic
example
> is making this happen.

The question is regarding the marquee tool. Click in the white space on the
diagram and drag, you get the marquee tool.

> Which is okay, because I'm after something a little different; a simple
> click makes a Selection happen, which is fine, but I need a drag to start
a
> connection on the EditPart I'm pointed at. Is there any class/method in
the

Clicking anywhere causes a connection? or only in a special region. If you
just need this in a special region, I would do this using a Handle. The
handle can be transparent, assuming you have some sort of terminal
decoration on the node. A handle can be visible all the time; the part
doesn't have to be selected. The handle would then return the
ConnectionCreationDragTracker as its DragTracker.

> logic example to start me toward an answer? Does my entire EditPart need
to
> be a connection terminal for anything connection-related to happen?
>
> advTHANKSance.
>
> MFR
>
- Re: Unification of Marquee and selection tool [message #13988 is a reply to message #13979] Fri, 19 July 2002 02:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.intershop.de

Hi!

You must overwrite EditPart#getDragTracker(Request). My root edit part
simply returns a new MarqueDragTracker there.

Cu, Gunnar
- Re: Unification of Selection and Connection tool [message #13998 is a reply to message #13987] Fri, 19 July 2002 11:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mfrose.caredatasystems.com

"Randy Hudson" <none@ibm.com> wrote in message
news:ah7clp$9te$1@rogue.oti.com...
>
> "Martin Rose" <mfrose@caredatasystems.com> wrote in message
> news:ah74j5$5d2$1@rogue.oti.com...
> > Which is okay, because I'm after something a little different; a simple
> > click makes a Selection happen, which is fine, but I need a drag to
start
> a
> > connection on the EditPart I'm pointed at. Is there any class/method in
> the
>
> Clicking anywhere causes a connection? or only in a special region. If
you
> just need this in a special region, I would do this using a Handle. The
> handle can be transparent, assuming you have some sort of terminal
> decoration on the node. A handle can be visible all the time; the part
> doesn't have to be selected. The handle would then return the
> ConnectionCreationDragTracker as its DragTracker.

Ideally a drag anywhere on the EditPart would start the connection. I'll
see what I can make of it between this and Gunnar's reply to Yoav, but if
you have any other thoughts I'll be checking back.

> > logic example to start me toward an answer? Does my entire EditPart
need
> to
> > be a connection terminal for anything connection-related to happen?

(or parhaps a very large rectangular Handle?)

MFR
- Re: Unification of Marquee and selection tool [message #14360 is a reply to message #13988] Sun, 21 July 2002 04:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi
i did as you suggested, but after i mark a region that includes several
editparts, only one of them gets selected. does anyone knows what could be
the problem?
thanks
yoav
Gunnar Wagenknecht wrote:

> Hi!

> You must overwrite EditPart#getDragTracker(Request). My root edit part
> simply returns a new MarqueDragTracker there.

> Cu, Gunnar
- Re: Unification of Marquee and selection tool [message #14377 is a reply to message #14360] Sun, 21 July 2002 06:05 Go to previous message
Eclipse UserFriend
partially solved. it seems that in order to select an editpart, all of its
figure should be in the marked region. how can i change this behaviour to
be similar to the way the marquee behaves on the windows deaktop, i.e.,
even if part of the figure is in the marked region, the editpart will be
selected.
thanks
yoav
Yoav Rubin wrote:

> Hi
> i did as you suggested, but after i mark a region that includes several
> editparts, only one of them gets selected. does anyone knows what could be
> the problem?
> thanks
> yoav
> Gunnar Wagenknecht wrote:

> > Hi!

> > You must overwrite EditPart#getDragTracker(Request). My root edit part
> > simply returns a new MarqueDragTracker there.

> > Cu, Gunnar
Previous Topic:Randys patch?
Next Topic:BendPoints Refresh problem
Goto Forum:
  


Current Time: Sun Apr 27 21:37:18 EDT 2025

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

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

Back to the top