Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Riena » How to update the module label?
How to update the module label? [message #584654] Thu, 04 February 2010 06:04 Go to next message
Matthias is currently offline Matthias
Messages: 52
Registered: September 2009
Member
Hi,
is there a way to set the label of an modul dynamically. At node creation i use navigation assembler variables (e.g. ${riena.navigation.parameter:name}) to access the properties of my navigation argument.
I didn't found a solution how to (automatically) update that label after PropertyChange events were fired. Where would need to set the corresponding listener?

thanks, Matthias
Re: How to update the module label? [message #584674 is a reply to message #584654] Thu, 04 February 2010 09:28 Go to previous messageGo to next message
Matthias is currently offline Matthias
Messages: 52
Registered: September 2009
Member
i found the getParentOfType method:


getNavigationNode().getParentOfType(IModuleNode.class).setLa bel(newVal);


I use that in combination with a PropertyChangeListener.
Re: How to update the module label? [message #584686 is a reply to message #584674] Fri, 05 February 2010 15:21 Go to previous message
Christian Campo is currently offline Christian Campo
Messages: 590
Registered: July 2009
Senior Member
Am 04.02.10 15:28, schrieb matthias:
> i found the getParentOfType method:
>
>
> getNavigationNode().getParentOfType(IModuleNode.class).setLa bel(newVal);
>
>
> I use that in combination with a PropertyChangeListener.
right that the way to do it :-)
Previous Topic:Java System Properties as variables in org.eclipse.core.variables
Next Topic:How to update the module label?
Goto Forum:
  


Current Time: Mon Jul 28 04:30:27 EDT 2014

Powered by FUDForum. Page generated in 0.01681 seconds