Hi,
the PluggableMenu was dropped long time ago, since it is not really needed. You
can implement the ModuleInterface directly, and add a menu item to the some
menu. Here is an code example:
public class MyModule implements ModuleInterface {
/*
* Initialize my module by adding a menu item.
*
* @see org.argouml.moduleloader.ModuleInterface#enable()
*/
public boolean enable() {
ProjectBrowser pb = ProjectBrowser.getInstance();
GenericArgoMenuBar mb = (GenericArgoMenuBar) pb.getJMenuBar();
// as an example, we add something to the tools menu,
// but the other menus are available as well:
JMenu menu = mb.getTools();
if (menu != null) {
menu.add(new MyMenuOrMenuItem());
}
return true;
}
HTH,
Thomas
-------- Original-Nachricht --------
> Datum: Wed, 30 Sep 2009 10:35:17 +0200
> Von: Mux0x55 <[email protected]>
> An: [email protected]
> Betreff: [argouml-dev] [argouml-dev] PluggableMenu: where is it?
> Hi guys,
> I read this:
> http://argopno.tigris.org/documentation/tutoriel/new_module.html. I know
> that it is out of date, but I'm trying to use that tutorial to start
> developing a module (I'm using also argouml-cpp-module to understand how
> to
> develop a module).
> So where the PluggableMenu interface in the new argo-uml-module
> implementation?
>
> Thanks in advance
>
> Mux
>
> ------------------------------------------------------
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2401918
>
> To unsubscribe from this discussion, e-mail:
> [[email protected]].
> To be allowed to post to the list contact the mailing list moderator,
> email: [[email protected]]
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2401924
To unsubscribe from this discussion, e-mail:
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email:
[[email protected]]