Hi Richard, I know you are the only one that can answer this, so I
repost the question, that was lost in the list :)
Any hint to give me? I think this should work like that.
Andrea
> I'm trying the menubuilder.
> If I got it right, I should be able to create my SomeAction extending
> Action and implementing IAction with its text, icon and whatever.
> Then I use the extention point and create a class that wants me to
> implement the fill menu and toolbar methods. Kinda like:
> ____________________________________________________________________
> public class JGrassMenusAndToolbars implements MenuBuilder {
>
> private SomeAction someAction = null;
>
> public JGrassMenusAndToolbars() {
> someAction = new SomeAction();
> }
>
> public void fillCoolBar( ICoolBarManager coolBar, IWorkbenchWindow
> window ) {
>
> IToolBarManager toolBar = new ToolBarManager(coolBar.getStyle());
> coolBar.add(toolBar);
>
> toolBar.add(someAction);
> }
>
> public void fillMenuBar( IMenuManager menuBar, IWorkbenchWindow
> window ) {
> MenuManager newMenu = new MenuManager("jgrass", "&JGrass");
> fileMenu.add(someAction);
>
> menuBar.add(newMenu);
> }
> }
>
> ____________________________________________________________________
>
>
> However nothing appears on the bar or menu and I also do not get any error.
> Any idea?
> Am I going the proper way?
>
>
> Andrea
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel