Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Using include params in parts' labels
Using include params in parts' labels [message #820796] Wed, 14 March 2012 11:16 Go to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Hi,
I've created a composite which can be included to display all necessary properties for a certain type of model.
The property name of the model element is passed to the composite as @{} parameter.
I'd like to be able to change the labels of parts in the included composite according to the specific property it's operating on: using @{} in labels does not seem to work.
Alternatively, is there a service which can assist in setting labels of properties dynamically? (Specifically regular Value property editors, so I understand ValueLabelService is not relevant in this case).
Thanks
Re: Using include params in parts' labels [message #820833 is a reply to message #820796] Wed, 14 March 2012 12:22 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 923
Registered: July 2009
Senior Member
Could you be more specific about where using @{} syntax does not work. You are probably running into the following issue, but I cannot be 100% sure based on the above description:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=367775

There is currently no service alternative to using @Label annotation. There is a facility in sdef that override that label with another static label, but that's about it.

- Konstantin
Re: Using include params in parts' labels [message #820849 is a reply to message #820833] Wed, 14 March 2012 12:47 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
I actually mean using @{} in those sdef static labels.
Re: Using include params in parts' labels [message #820858 is a reply to message #820849] Wed, 14 March 2012 12:59 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 923
Registered: July 2009
Senior Member
Ok. So to clarify, you want to use @{} in sdef label overrides for property editors?

If that's the case, the above bug does apply as that label override should support EL at some point in the future.
Re: Using include params in parts' labels [message #820862 is a reply to message #820858] Wed, 14 March 2012 13:07 Go to previous messageGo to next message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Ok, cool.
Thanks.
Re: Using include params in parts' labels [message #820898 is a reply to message #820862] Wed, 14 March 2012 14:06 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin Komissarchik
Messages: 923
Registered: July 2009
Senior Member
Ok. So it turns out that template params are already accessible from EL using ${ Params.FooBar } syntax. It seems that the only thing left to satisfy the required laid out here is to support EL in property editor label override. Could you open an enhancement request for that?
Re: Using include params in parts' labels [message #820929 is a reply to message #820898] Wed, 14 March 2012 14:54 Go to previous message
Roded Bahat is currently offline Roded Bahat
Messages: 152
Registered: August 2011
Senior Member
Of course.
374298
Thanks!
Previous Topic:Activating general actions only via a key binding
Next Topic:Editor reference from a model element
Goto Forum:
  


Current Time: Wed Apr 16 06:52:44 EDT 2014

Powered by FUDForum. Page generated in 0.07412 seconds