[Eugenia] Multiline property of a node's attribute [message #1429748] |
Tue, 23 September 2014 17:47 |
|
Hello, I am trying to set a node's attribute to multiline = true through the genmodel so as to have the pop up appearing whenever this attribute is edited. However as eugenia generates the editor at once it seems like not working because my changes are applied after the editor has been generated and thus the genmodel is available to me. The attribute is still showing as single line in properties view. I assume that I have to use the FixGMFGen in order to achieve this but I dont know how to get the specified attribute and set its multiline property to true.
Any suggestions on that will be appreciated or any other way to approach the problem, Thanks.
|
|
|
Re: [Eugenia] Multiline property of a node's attribute [message #1430752 is a reply to message #1429748] |
Wed, 24 September 2014 19:25 |
|
Hi Niko,
The following works as expected in my setup.
@namespace(uri="multiline", prefix="")
package multiline;
@gmf.diagram
class Model {
val ModelElement[*] elements;
}
@gmf.node(label="name")
class ModelElement {
@emf.gen(propertyMultiLine="true")
attr String name;
}
Could you please give this a go and let me know how it goes?
Cheers,
Dimitris
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03025 seconds