Newbie: Making a simple tool [message #193939] |
Mon, 29 August 2005 16:45 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03762 seconds