Skip to main content



      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 #532591] Mon, 10 May 2010 10:27 Go to next message
Eclipse UserFriend
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
Re: [EuGENia] Defining the list of Attributes with static key and variable value. [message #532603 is a reply to message #532591] Mon, 10 May 2010 10:32 Go to previous messageGo to next message
Eclipse UserFriend
Hi Syed,

I suspect that you'll have to modify the generated GMF code to achieve this.

Cheers,
Dimitris

sim wrote:
> 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
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [EuGENia] Defining the list of Attributes with static key and variable value. [message #532617 is a reply to message #532603] Mon, 10 May 2010 10:58 Go to previous message
Eclipse UserFriend
Hi Dimitris,

So as I understnd it would not be possible to achieve this by using Emfatic
code. And I would have to manually change the gmfmap.

Regards,
Syed.


"Dimitris Kolovos" <dskolovos@gmail.com> wrote in message
news:hs95es$8lo$1@build.eclipse.org...
> Hi Syed,
>
> I suspect that you'll have to modify the generated GMF code to achieve
> this.
>
> Cheers,
> Dimitris
>
> sim wrote:
>> 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
>>
>
>
> --
> Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
> Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [EuGENia] Defining the list of Attributes with static key and variable value. [message #589087 is a reply to message #532591] Mon, 10 May 2010 10:32 Go to previous message
Eclipse UserFriend
Hi Syed,

I suspect that you'll have to modify the generated GMF code to achieve this.

Cheers,
Dimitris

sim wrote:
> 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
>


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: [EuGENia] Defining the list of Attributes with static key and variable value. [message #589103 is a reply to message #532603] Mon, 10 May 2010 10:58 Go to previous message
Eclipse UserFriend
Hi Dimitris,

So as I understnd it would not be possible to achieve this by using Emfatic
code. And I would have to manually change the gmfmap.

Regards,
Syed.


"Dimitris Kolovos" <dskolovos@gmail.com> wrote in message
news:hs95es$8lo$1@build.eclipse.org...
> Hi Syed,
>
> I suspect that you'll have to modify the generated GMF code to achieve
> this.
>
> Cheers,
> Dimitris
>
> sim wrote:
>> 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
>>
>
>
> --
> Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
> Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:Navigation of ref'd associations
Next Topic:Getting started with EML
Goto Forum:
  


Current Time: Wed Jul 23 18:56:39 EDT 2025

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

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

Back to the top