Scheme editor, ecore to gmf [message #207594] |
Wed, 01 October 2008 08:45 |
Eclipse User |
|
|
|
Originally posted by: andrew.iaes.ru
This is a multi-part message in MIME format.
--------------020904020607020008010709
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I like create scheme editor with gmf. First i create ecore model with
three nodes. One node is main scheme and two others for example
rectangle and ellipse. But my model is now working. Please help me how
create scheme with nodes like rectangle, ellipse, circle and so on!
Thanks!
Andrei.
--------------020904020607020008010709
Content-Type: text/xml;
name="five.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="five.ecore"
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="scheme"
nsURI="iaes.ru/scheme" nsPrefix="schemepref">
<eClassifiers xsi:type="ecore:EClass" name="MainScheme">
<eStructuralFeatures xsi:type="ecore:EReference" name="BusRef" upperBound="-1"
eType="#//Bus"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="CloserRef" upperBound="-1"
eType="#//Closer"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Bus">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Closer">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>
--------------020904020607020008010709--
|
|
|
Re: Scheme editor, ecore to gmf [message #207612 is a reply to message #207594] |
Wed, 01 October 2008 11:25 |
Ed Merks Messages: 33217 Registered: July 2009 |
Senior Member |
|
|
Andrei,
Please don't post the same question to multiple groups as separate
notes. Probably you want BusRef and CloserRef to be containment
references so that Main Scheme will contain these as nested children in
the serialization.
Andrei wrote:
> Hi,
> I like create scheme editor with gmf. First i create ecore model with
> three nodes. One node is main scheme and two others for example
> rectangle and ellipse. But my model is now working. Please help me how
> create scheme with nodes like rectangle, ellipse, circle and so on!
> Thanks!
> Andrei.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02937 seconds