Hi Matthias,
> in a OJ plugin I need to change the displayed name of a menuitem. My
> first approach was the AbstractPlugIn.getName() method. But the
> getName() was not everytime called, if an item should be displayed.
The getName method should work. Can you precise what you mean by getName 
is not "everytime" called ?

> My second idea was the featureInstaller.addMainMenuItem(...) method to
> get the menuitem. The problem is that this method returns a void :-(
> Can anybody give me a hint how can I do this?
Usually, getName() or a localized string is used as a argument of 
addMainMenuItem method.
This method do not return the item name, it uses it to install the menu 
item in the menu.

If you still have a problem to get your menu item name, you can 
copy/paste your plugin initialize method

Michaël

> Regards
>
> Matthias
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to