Re: [JPP-Devel] change menuitem name

2010-11-16 Thread Michaël Michaud
Hi, > I guess he wants to change the string during run time, like e.g. 'Plugin X > on' -> 'Plugin X running / switch off' or so ... Oh, sorry, thank to make it clearer. > Probably the way to go is getting the menu entry out of the OJ internals. > Check how featureinstaller installs it and check

Re: [JPP-Devel] change menuitem name

2010-11-16 Thread edgar . soldin
I guess he wants to change the string during run time, like e.g. 'Plugin X on' -> 'Plugin X running / switch off' or so ... Probably the way to go is getting the menu entry out of the OJ internals. Check how featureinstaller installs it and check the main menu for a method to get the object. .

Re: [JPP-Devel] change menuitem name

2010-11-16 Thread Michaël Michaud
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 no

[JPP-Devel] change menuitem name

2010-11-16 Thread Matthias Scholz
Hi, 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. My second idea was the featureInstaller.addMainMenuItem(...) method to get the menuitem. T