Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Text element of a class
Text element of a class [message #665979] Mon, 18 April 2011 08:52 Go to next message
Ton Tu is currently offline Ton Tu
Messages: 16
Registered: June 2010
Junior Member
Hi all,
I encountered the same problem with another guy which of course hasn't been answered yet. So, I repost his question here and hope someone could response to it.

Quote:
what needs to be done in EMF ecore(property window) to show the
output(map1,map2) values, as in XML(wheni save .ecore model as .xml)

<map name="ABC">
<mapName>map1</mapName>
<mapName>map2</mapName>
</map>

I am using ecore (java annotaion ) model and saving it into XML file, i am
able to get/set attributes in property window , but need to know how i can
set the values (map1, map2) in property window to get the
<mapName>map1</mapName> effect.


Any help would be appreciated Smile
Re: Text element of a class [message #666099 is a reply to message #665979] Tue, 19 April 2011 02:48 Go to previous message
Ton Tu is currently offline Ton Tu
Messages: 16
Registered: June 2010
Junior Member
Hi all,
After searching for a while in the forum, I finally found out the solution to my (as well as another guy's http://www.eclipse.org/forums/index.php?t=msg&goto=39501 5&S=cef937232b7d3ff6955e591a8d027d6b) problem. In fact, ECORE doesn't support describing text elements of a node in XML format. So, the solution is realizing another transformation from the model we achieved from our main transformation to the XML model which is conformed to XSD metamodel. You can find details about this approach here: http://www.eclipse.org/forums/index.php?t=rview&goto=655 553&th=203153
Previous Topic:XMI saving is very slow...
Next Topic:Extract all attributes from ecore metamodel
Goto Forum:
  


Current Time: Tue Jul 22 11:46:59 EDT 2014

Powered by FUDForum. Page generated in 0.02188 seconds