Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » selection box in a gef editor
selection box in a gef editor [message #215448] Wed, 03 May 2006 12:54 Go to next message
ironeagle is currently offline ironeagleFriend
Messages: 6
Registered: July 2009
Junior Member
hi, i want to draw a selection box i a gef editor. i already have
listeners for mousemove event. Now i want draw a box, when the user is
holding a button and moving the mouse in the editor, in order to select
some objects in the editor.
How can i do this ?
(I hope you can understand my english)
Thanks in advance
Re: selection box in a gef editor [message #215478 is a reply to message #215448] Wed, 03 May 2006 19:15 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
Shouldn't you just be including the Marquee selection tool in your palette?

@see MarqueeSelectionTool

You can see how it's integrated into Logic example in
LogicPlugin#createControlGroup

-Steve

"ironeagle" <iron.eagle@gmx.at> wrote in message
news:0a966a0e8b81c9ebb626acfa25841a77$1@www.eclipse.org...
> hi, i want to draw a selection box i a gef editor. i already have
> listeners for mousemove event. Now i want draw a box, when the user is
> holding a button and moving the mouse in the editor, in order to select
> some objects in the editor.
> How can i do this ?
> (I hope you can understand my english)
> Thanks in advance
>
Re: selection box in a gef editor [message #215493 is a reply to message #215478] Thu, 04 May 2006 05:53 Go to previous messageGo to next message
ironeagle is currently offline ironeagleFriend
Messages: 6
Registered: July 2009
Junior Member
hi thanks,
i don't want to you use the marquee tool. I want to be able to select the
object directly with the mouse, without activating another tool before.
I've already seen some application, that managed it so.

greetings
ironeagle
Re: selection box in a gef editor [message #215542 is a reply to message #215493] Thu, 04 May 2006 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The logic example does this, using the MarqueeDragTracker, which extends
MarqueeSelectionTool.

"Ironeagle" <iron.eagle@gmx.at> wrote in message
news:db5ab2a00b2d0f262b44d75ded291034$1@www.eclipse.org...
> hi thanks,
> i don't want to you use the marquee tool. I want to be able to select the
> object directly with the mouse, without activating another tool before.
> I've already seen some application, that managed it so.
>
> greetings
> ironeagle
>
Re: selection box in a gef editor [message #215601 is a reply to message #215542] Fri, 05 May 2006 05:34 Go to previous message
ironeagle is currently offline ironeagleFriend
Messages: 6
Registered: July 2009
Junior Member
oh, thank you.
excuse my stupid question ... but where can i find this example. I started
working with eclipse just some month ago.

thx for your auxiliary answers
Previous Topic:PolylineConnection width does not zoom/scale
Next Topic:Draw2d very large figures
Goto Forum:
  


Current Time: Thu Mar 28 22:01:53 GMT 2024

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

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

Back to the top