Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EuGENia Annotations
EuGENia Annotations [message #1053564] Mon, 06 May 2013 14:39 Go to next message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
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 14:46]

Report message to a moderator

Re: EuGENia Annotations [message #1053573 is a reply to message #1053564] Mon, 06 May 2013 14:58 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 594
Registered: January 2010
Location: Birmingham, UK
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:Qualified names on referance labels
Goto Forum:
  


Current Time: Fri Mar 29 04:36:17 GMT 2024

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

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

Back to the top