Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EuGENia Annotations
EuGENia Annotations [message #1053564] Mon, 06 May 2013 10:39 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 236
Registered: January 2013
Location: Izmir
Senior Member
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]

Report message to a moderator

Re: EuGENia Annotations [message #1053573 is a reply to message #1053564] Mon, 06 May 2013 10:58 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-Dominguez
Messages: 304
Registered: January 2010
Senior Member
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}")

Previous Topic:[Eugenia] Generating Default Values for ecore
Next Topic:Xtext Graphical View
Goto Forum:
  


Current Time: Fri Jul 25 19:20:44 EDT 2014

Powered by FUDForum. Page generated in 0.02136 seconds