EuGENia Annotations [message #1053564] |
Mon, 06 May 2013 10:39  |
Eclipse User |
|
|
|
Hi all,
i see 'Customizing a GMF editor generated by EuGENia' tutorial on Epslon web site.
And i want to use something like that on tutorial
@gmf.node(label="name,type", figure="rectangle",
label.icon="false", label.pattern="{0}:{1}")
class Attribute {
attr String name;
attr String type;
}
on {1} string i want to use static string not dynamic string from my model.
so i try this,
@gmf.node(label="name", figure="rectangle", label.icon="false", label.pattern="{0}:'ContentType'")
on diagram i see my string but i need to user can't change this string so how can i done this ?
Regards,
[Updated on: Mon, 06 May 2013 10:46] by Moderator
|
|
|
Re: EuGENia Annotations [message #1053573 is a reply to message #1053564] |
Mon, 06 May 2013 10:58  |
Eclipse User |
|
|
|
You might want to use different edit and view patterns:
@gmf.node(label="name", figure="rectangle", label.icon="false",
label.view.pattern="{0}:'ContentType'",
label.edit.pattern="{0}")
|
|
|
Powered by
FUDForum. Page generated in 0.36270 seconds