Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Tutorial - Mindmap Ecore
GMF Tutorial - Mindmap Ecore [message #110738] Sun, 11 March 2007 11:09 Go to next message
Eclipse UserFriend
Originally posted by: rb_account.yahoo.de

Hello!

I just finished the beginner's tutorial and created the Mindmap Modellin=
g =

Tool.
Everything works fine.

However, I have a question concerning the ecore-Meta-Model =

( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmf/exa mples/org.e=
clipse.gmf.examples.mindmap/model/mindmap.ecore?root=3DTechn ology_Projec=
t&view=3Dmarkup&content-type=3Dtext%2Fvnd.viewcvs-ma rkup&revision=3DHEAD=
).

The Meta-Model uses Annotations to extend the MetaData. What purpose do =
=

these annotations have? Is there any documentation on how to use these =

specific annotations?

Thanks

Rainer


Example of the annotations used in the Mindmap.ecore
-------------------------------------------------------
...
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Map">
<eAnnotations =

source=3D"http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key=3D"name" value=3D"Map"/>
<details key=3D"kind" value=3D"elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"rootTopi=
cs" =

upperBound=3D"-1"
eType=3D"#//Topic" containment=3D"true" resolveProxies=3D"false=
">
<eAnnotations =

source=3D"http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key=3D"kind" value=3D"element"/>
<details key=3D"name" value=3D"rootTopics"/>
</eAnnotations>
</eStructuralFeatures>
...
-------------------------------------------------------
Re: GMF Tutorial - Mindmap Ecore [message #110762 is a reply to message #110738] Sun, 11 March 2007 14:51 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------010406030206020703050000
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Rainer,

Have a look at:

XML Schema to Ecore Mapping
< http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf>

These annotations will direct the serialization of the instance to
respect the original schema (or to serialize the way the annotation
specifies since you can add these manually to any model).


Rainer Bernhard wrote:
> Hello!
>
> I just finished the beginner's tutorial and created the Mindmap
> Modelling Tool.
> Everything works fine.
>
> However, I have a question concerning the ecore-Meta-Model
> ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmf/exa mples/org.eclipse.gmf.examples.mindmap/model/mindmap.ecore?r oot=Technology_Project&view=markup&content-type=text %2Fvnd.viewcvs-markup&revision=HEAD).
>
>
> The Meta-Model uses Annotations to extend the MetaData. What purpose
> do these annotations have? Is there any documentation on how to use
> these specific annotations?
>
> Thanks
>
> Rainer
>
>
> Example of the annotations used in the Mindmap.ecore
> -------------------------------------------------------
> ...
> <eClassifiers xsi:type="ecore:EClass" name="Map">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="Map"/>
> <details key="kind" value="elementOnly"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference" name="rootTopics"
> upperBound="-1"
> eType="#//Topic" containment="true" resolveProxies="false">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="rootTopics"/>
> </eAnnotations>
> </eStructuralFeatures>
> ...
> -------------------------------------------------------


--------------010406030206020703050000
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Rainer,<br>
<br>
Have a look at:<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/emf/docs/overviews/XMLSchema ToEcoreMapping.pdf">XML
Schema to Ecore Mapping</a><br>
</blockquote>
These annotations will direct the serialization of the instance to
respect the original schema (or to serialize the way the annotation
specifies since you can add these manually to any model).<br>
<br>
<br>
Rainer Bernhard wrote:
<blockquote cite="midop.to05p8uofmd91d@rabe" type="cite">Hello!
<br>
<br>
I just finished the beginner's tutorial and created the Mindmap
Modelling Tool.
<br>
Everything works fine.
<br>
<br>
However, I have a question concerning the ecore-Meta-Model
(<a class="moz-txt-link-freetext" href=" http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmf/exa mples/org.eclipse.gmf.examples.mindmap/model/mindmap.ecore?r oot=Technology_Project&view=markup&content-type=text %2Fvnd.viewcvs-markup&revision=HEAD"> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmf/exa mples/org.eclipse.gmf.examples.mindmap/model/mindmap.ecore?r oot=Technology_Project&amp ;view=markup&amp;content-type=text%2Fvnd.viewcvs-markup& amp;amp;revision=HEAD </a>).
<br>
<br>
The Meta-Model uses Annotations to extend the MetaData. What purpose do
these annotations have? Is there any documentation on how to use these
specific annotations?
<br>
<br>
Thanks
<br>
<br>
Rainer
<br>
<br>
<br>
Example of the annotations used in the Mindmap.ecore
<br>
-------------------------------------------------------
<br>
Previous Topic:Probable BUG during renaming of a node with custom size
Next Topic:Indeterministic error when changing properties
Goto Forum:
  


Current Time: Tue Jul 22 14:32:21 EDT 2025

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

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

Back to the top