Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » setText(String text) in MenuManager
setText(String text) in MenuManager [message #78729] Wed, 19 March 2008 10:02 Go to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi all,

I try to implement a multilanguage application. Everything works fine
except the menu.

There is no setText method in MenuManager to change dynamically the text
of my menu items... I though that I can override getText() method but I
did not found any method to update the menu text. It seems that the update
method of IContributionItem does not update the text...

Any suggestion ?

Thanks,

Emmanuel
Re: setText(String text) in MenuManager [message #78926 is a reply to message #78729] Sun, 23 March 2008 15:45 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi,

it seems you want to change the language of your application on the fly.
I don't think that this would be much sense as RCP (including JFace and
SWT) is conceptional not able to handle this. What you can do is to use
the I18n features of RAP to have a localized version of your
application. See
http://help.eclipse.org/help33/topic/org.eclipse.rap.help/he lp/html/advanced/internationalization.html

Greets
Benny


Emmanuel wrote:
> Hi all,
>
> I try to implement a multilanguage application. Everything works fine
> except the menu.
>
> There is no setText method in MenuManager to change dynamically the text
> of my menu items... I though that I can override getText() method but I
> did not found any method to update the menu text. It seems that the
> update method of IContributionItem does not update the text...
>
> Any suggestion ?
>
> Thanks,
>
> Emmanuel
>
Re: setText(String text) in MenuManager [message #79046 is a reply to message #78729] Mon, 24 March 2008 18:35 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

hm I'm not sure, but you can get the Menu widget by
MenuManager#getMenu(). This in turn returns the List of children of type
MenuItem - this inherits Item#setText(). Maybe that helps.

Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Emmanuel [mailto:emmanuel.marchal@n-side.be]
Bereitgestellt: Mittwoch, 19. März 2008 11:03
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: setText(String text) in MenuManager
Betreff: setText(String text) in MenuManager


Hi all,

I try to implement a multilanguage application. Everything works fine
except the menu.

There is no setText method in MenuManager to change dynamically the text
of my menu items... I though that I can override getText() method but I
did not found any method to update the menu text. It seems that the
update method of IContributionItem does not update the text...

Any suggestion ?

Thanks,

Emmanuel
Previous Topic:Tree issue
Next Topic:Problems with event enqueueing and client-server synchronization
Goto Forum:
  


Current Time: Tue Apr 23 11:17:23 GMT 2024

Powered by FUDForum. Page generated in 0.03058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top