Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Newbie: Making a simple tool
Newbie: Making a simple tool [message #193939] Mon, 29 August 2005 16:45 Go to next message
Eclipse UserFriend
Originally posted by: mikelin.ca.gmail.com

Hi,

I'm just getting into GEF for fun, right now. I'm poking about seeing
what I can do.

I started from this example, the link for which has conveniently gone dark:
http://eclipsewiki.editme.com/GefExamplesForEclipse3
In any case it's just the basics.

I am trying to make a new tool in the palette that executes and
arbitrary command on a model object when you click on its figure.
Following intuition, I subclassed TargetingTool, implemented
handleButtonDown(int) so it does updateTargetUnderMouse() just like
SelectionTool does, but now I'm stuck not knowing what to do next.

Where as in handleButtonDown of SelectionTool, it seems to delegate to a
DragTracker, I just want to execute the command from getCommand().

Can anyone point me in the right direction?

Thanks,
Mike
Re: Newbie: Making a simple tool [message #194293 is a reply to message #193939] Wed, 31 August 2005 22:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikelin.ca.gmail.com

*bump*

Mike Lin wrote:
> Hi,
>
> I'm just getting into GEF for fun, right now. I'm poking about seeing
> what I can do.
>
> I started from this example, the link for which has conveniently gone dark:
> http://eclipsewiki.editme.com/GefExamplesForEclipse3
> In any case it's just the basics.
>
> I am trying to make a new tool in the palette that executes and
> arbitrary command on a model object when you click on its figure.
> Following intuition, I subclassed TargetingTool, implemented
> handleButtonDown(int) so it does updateTargetUnderMouse() just like
> SelectionTool does, but now I'm stuck not knowing what to do next.
>
> Where as in handleButtonDown of SelectionTool, it seems to delegate to a
> DragTracker, I just want to execute the command from getCommand().
>
> Can anyone point me in the right direction?
>
> Thanks,
> Mike
Re: Newbie: Making a simple tool [message #195379 is a reply to message #194293] Fri, 09 September 2005 16:41 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

If you're still wondering, you should be doing this via an action on the
toolbar rather than the palette.

"Mike Lin" <mikelin.ca@gmail.com> wrote in message
news:df5clk$g9p$1@news.eclipse.org...
> *bump*
>
> Mike Lin wrote:
> > Hi,
> >
> > I'm just getting into GEF for fun, right now. I'm poking about seeing
> > what I can do.
> >
> > I started from this example, the link for which has conveniently gone
dark:
> > http://eclipsewiki.editme.com/GefExamplesForEclipse3
> > In any case it's just the basics.
> >
> > I am trying to make a new tool in the palette that executes and
> > arbitrary command on a model object when you click on its figure.
> > Following intuition, I subclassed TargetingTool, implemented
> > handleButtonDown(int) so it does updateTargetUnderMouse() just like
> > SelectionTool does, but now I'm stuck not knowing what to do next.
> >
> > Where as in handleButtonDown of SelectionTool, it seems to delegate to a
> > DragTracker, I just want to execute the command from getCommand().
> >
> > Can anyone point me in the right direction?
> >
> > Thanks,
> > Mike
Previous Topic:Change perspective on selection
Next Topic:DirectedGraphLayout changed for 3.1?
Goto Forum:
  


Current Time: Fri Apr 26 15:47:54 GMT 2024

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

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

Back to the top