Skip to main content



      Home
Home » Modeling » Epsilon » [Emfatic] syntax for enums/key value
[Emfatic] syntax for enums/key value [message #1368881] Tue, 20 May 2014 06:13 Go to next message
Eclipse UserFriend
Assume I have the following class Sample in my .emf file

@gmf.node
class Sample {

attr String[*] attributes;

}

Post Generation using eugenia...

In properties view i get to see a button that takes list of strings.

Similarly what type I have to specify for attributes such that it will take

key values pairs ( like enum,Map etc )

Thanks,
Shrikanth NC
Re: [Emfatic] syntax for enums/key value [message #1372321 is a reply to message #1368881] Wed, 21 May 2014 15:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I'm not aware of any built-in support for key-value property editors in EMF/GMF.

Cheers,
Dimitris
Re: [Emfatic] syntax for enums/key value [message #1375700 is a reply to message #1372321] Fri, 23 May 2014 01:15 Go to previous message
Eclipse UserFriend
No problem. I achieved it differently.


//Compartment

class Map {

ref Entry[*] entries;


}

//Node
class Entry {

attr String key;
attr String[*] value;

}


Thanks,
Shrikanth NC
Previous Topic:[ECL] How to count the number of elements of a model
Next Topic:[EOL/ETL/ECL] How to exchange variables
Goto Forum:
  


Current Time: Mon Jul 14 01:23:24 EDT 2025

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

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

Back to the top