Hi Nils,

  To get the toolbox you can do:

ToolboxDialog toolbox = ((EditingPlugIn)
context.getWorkbenchContext().getBlackboard().get(EditingPlugIn.KEY)).getToolbox(context.getWorkbenchContext());

I'm not sure what you are going to do after that. It is pretty unusual to
change the selected tool.

Perhaps: (where CursorToolClass is the class of the tool you want to
select).

toolbox.getButton(CursorToolClass).setSelected();


regards,
Larry


On Wed, Dec 3, 2008 at 11:56 AM, Stefan Steiniger <[EMAIL PROTECTED]> wrote:

> Hei Nils,
>
> this is the right list to ask these questions.
>
> Unfortunately, for me, it is not clear what you are trying to do - so no
> simple question... can you specify?
>
> However, we have methods to add tools/plugins to the toolbox (see class
> OpenJumpConfiguration.java for examples) and to the main toolbar (see
> JumpConfiguration.java). In general plugins add themselves to the menus,
> toolbar, toolbox - depending on the order of call.
>
> Adding a new toolbox for your own functions is possible too (I do that
> for my work, the only problem is that one can not add threaded plugins)
> - I could send some code on that on request.
>
> in general a few hints can be found on the OJ wiki too:
> http://openjump.org/wiki/show/Documentation
> (scroll down to documentation for developers)
>
> hope some of these infos help
>
> cheers,
> Stefan
>
> Nils Kuhn wrote:
> > Hello,
> > I don't know whether this the right place to get some answers but I have
> > a question on the source of openJUMP and didn't found a clear, well
> > arranged developer-forum.
> >
> > I am developing a small information system based on openJUMP. I do some
> > manipulations on the core-source of openJUMP and the main functionality
> > of the system is implemented as an Extension with ToolboxPlugIns,
> > PlugIns and CursorTools.
> >
> > My simple question:
> > Could you give me a code-example for changing the activated cursor tool
> > (e.g. activating the Pan-CursorTool) and for executing a PlugIn from the
> > openJUMP-main menu or from the toolbar. My starting ppoint is just a
> > WorkbenchContext.
> >
> > Please give me a hint, thanks a lot,
> > Nils
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Jump-pilot-devel mailing list
> > Jump-pilot-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> >
> >
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>



-- 
http://amusingprogrammer.blogspot.com/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to