Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [Emfatic] syntax for enums/key value
[Emfatic] syntax for enums/key value [message #1368881] Tue, 20 May 2014 10:13 Go to next message
Shrikanth NC is currently offline Shrikanth NCFriend
Messages: 31
Registered: February 2014
Member
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 19:46 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2162
Registered: July 2009
Location: York, UK
Senior Member

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 05:15 Go to previous message
Shrikanth NC is currently offline Shrikanth NCFriend
Messages: 31
Registered: February 2014
Member
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: Fri Apr 19 03:30:51 GMT 2024

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

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

Back to the top