|Re: Node Label Pattern Configuration [message #1058641 is a reply to message #1058499]
||Tue, 14 May 2013 15:19
| Antonio Garcia-Dominguez
Registered: January 2010
I'm afraid using something like 'field.name' is not supported by Eugenia at the moment. Eugenia maps 'label="a,b"' to GMF feature label mappings, and these are restricted to the attributes of the EClass itself. We'd need to implement a different kind of mapping, and I'm not 100% sure GMF will allow for it in its models or if it will need custom code.
Incidentally, you might want to use label.view.pattern and label.edit.pattern instead of label.pattern and label.edit.patttern. label.pattern is both for editing and viewing, and I'm not sure if label.edit.pattern might conflict with it.
Update: I've looked a bit into this and you may need to use a GMF Expression Label Mapping. Eugenia does not support them, and I'm not sure if we should: according to the official documentation, users need to customize the generated code anyway to have changes in the label update the model. Here is some documentation I have found regarding these mappings:
A polishing transformation and a bit of custom code in the generated label class should do the job, I think.
[Updated on: Tue, 14 May 2013 15:33]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02028 seconds