Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Set attribute of EMap, EEList(How to set attributes in eclipse)
Set attribute of EMap, EEList [message #716935] Thu, 18 August 2011 20:40 Go to next message
Dave  is currently offline Dave Friend
Messages: 1
Registered: August 2011
Junior Member
Hello!

Via the ecorediag GUI, how does one update the attributes for an EMap or an EEList?

Steps to reproduce:

In my ecorediag, I added an EMap:

* In a class, add an EAttribute
* Set the attribute's EType to EMap
* Set the attribute's name (queryColumns)

This then gets displayed as
queryColumns : EMap<?,?>

So my question is: how do I then set the types of the key and value in the Map?

Thanks in advance!
Re: Set attribute of EMap, EEList [message #716984 is a reply to message #716935] Thu, 18 August 2011 23:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The graphical editor is quite poor for dealing with generics. <br>
<br>
Perhaps you really want a modeled map?<br>
<ul>
<li class="toclevel-2"><a
href="http://wiki.eclipse.org/index.php/EMF/FAQ#How_do_I_create_a_Map_in_EMF.3F"><span
class="tocnumber">2.29</span> <span class="toctext">How do
I create a Map in EMF?</span></a></li>
</ul>
If that's not what you want, all the details for creating generic
types need to be done in the Sample Ecore Editor by creating generic
types as children in the argument list...<br>
<br>
<br>
On 18/08/2011 1:40 PM, Dave wrote:
<blockquote cite="mid:j2jso3$1g5$1@news.eclipse.org" type="cite">Hello!
<br>
<br>
Via the ecorediag GUI, how does one update the attributes for an
EMap or an EEList?
<br>
<br>
Steps to reproduce:
<br>
<br>
In my ecorediag, I added an EMap:
<br>
<br>
* In a class, add an EAttribute
<br>
* Set the attribute's EType to EMap
<br>
* Set the attribute's name (queryColumns)
<br>
<br>
This then gets displayed as
<br>
 queryColumns : EMap&lt;?,?&gt;
<br>
<br>
So my question is: how do I then set the types of the key and
value in the Map?
<br>
<br>
Thanks in advance!
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Unit Tests for ItemProviders
Next Topic:[EMF.core] EObjectValidator does not support multiple inheritance validation
Goto Forum:
  


Current Time: Fri Apr 26 23:54:22 GMT 2024

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

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

Back to the top