Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Using include params in parts' labels
Using include params in parts' labels [message #820796] Wed, 14 March 2012 15:16 Go to next message
Roded Bahat is currently offline Roded BahatFriend
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 16:22 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 16:47 Go to previous messageGo to next message
Roded Bahat is currently offline Roded BahatFriend
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 16:59 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 17:07 Go to previous messageGo to next message
Roded Bahat is currently offline Roded BahatFriend
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 18:06 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
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 18:54 Go to previous message
Roded Bahat is currently offline Roded BahatFriend
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: Thu Apr 25 16:18:31 GMT 2024

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

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

Back to the top