Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EuGENia] Defining the list of Attributes with static key and variable value.
[EuGENia] Defining the list of Attributes with static key and variable value. [message #589080] Mon, 10 May 2010 14:27
Syed Imran is currently offline Syed ImranFriend
Messages: 25
Registered: January 2010
Location: Cork, Ireland
Junior Member
Hi

I am trying to define the list of different attributes in class, in which to make the name of the attribute as .readOnly, while their values will be changeable.
Following the Article "Customizing a GMF editor generated by EuGENia",

@gmf.node(label="name,type", figure="rectangle",
label.icon="false", label.pattern="{0}:{1}")

class Attribute {
attr String name;
attr String type;
}

I have to change the key and value every time for different attribute. Is it possible to make the key constant and value variable?

For example,

class Attribute {
attr String name;
attr String description;
attr String Condition;
}

In GMF editor the client would be able to just put the value of name, description and condition respectively. This information will serve as a form to a consumer to fill information in models.


Thanks a million,
Syed Imran
Previous Topic:[EuGENia] Problem customizing the GMF editor
Next Topic:Navigation of ref'd associations
Goto Forum:
  


Current Time: Thu Apr 25 16:02:30 GMT 2024

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

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

Back to the top