Does one "combine" tools or jump from one to another programatically somehow? [message #181601] |
Tue, 17 May 2005 21:05  |
Eclipse User |
|
|
|
Originally posted by: Pachwork.hotmail.com
I want to implement an interaction where the user is free to use marquee
selection, regular selection, connection of nodes (via the grabbing of a
particular handle on any given node and dragging it to another), as well
as a few other things.
Right now I have many different tools and a palette for switching between
the tools. Is it the case that I should try to write a tool that
encompasses all of the functionality that I need? Or is there some way to
eliminate the pallet and swap tools into the active state at the right
moments in time for them to capture all the important events? Or is there
perhaps some alternative that I am not seeing?
If anyone can point me to any documentation for developing tools, I would
be very appreciative.
Thank you,
John
|
|
|
|
Re: Does one "combine" tools or jump from one to another programatically somehow [message #182066 is a reply to message #181866] |
Sat, 21 May 2005 18:28  |
Eclipse User |
|
|
|
I don't think you'll be able to do either. Your best bet is extending
PanningSelectionTool to handle connection creation (it already does
marquee). You'll probably run into several problems/conflicts if you try to
make this tool accessible though.
"John Pacheco" <Pachwork@hotmail.com> wrote in message
news:35c4f0bf1a5795c85d10fa007f79f2a6$1@www.eclipse.org...
> This article: http://eclipsewiki.editme.com/GefDescription2, which I have
> come to know and love, mentions what I think is this page:
>
http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/gef-home /reference/Attic/interactions.html?rev=HEAD&cvsroot=Tool s_Project&content-type=text/html
> But I haven't found it very helpful.
>
> Does anyone have any documentaion on how one combines tools? I'm really
> at a loss here.
>
> -John
>
> John Pacheco wrote:
> > I want to implement an interaction where the user is free to use marquee
> > selection, regular selection, connection of nodes (via the grabbing of a
> > particular handle on any given node and dragging it to another), as well
> > as a few other things.
>
> > Right now I have many different tools and a palette for switching
between
> > the tools. Is it the case that I should try to write a tool that
> > encompasses all of the functionality that I need? Or is there some way
to
> > eliminate the pallet and swap tools into the active state at the right
> > moments in time for them to capture all the important events? Or is
there
> > perhaps some alternative that I am not seeing?
>
> > If anyone can point me to any documentation for developing tools, I
would
> > be very appreciative.
>
> > Thank you,
> > John
>
|
|
|
Powered by
FUDForum. Page generated in 0.04456 seconds