Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Scheme editor, ecore to gmf
Scheme editor, ecore to gmf [message #207594] Wed, 01 October 2008 08:45 Go to next message
Eclipse UserFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31870
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/
Previous Topic:Remove the horizontal line in the middle of Compartment?
Next Topic:Drag-drop from Project Explorer to Diagram
Goto Forum:
  


Current Time: Mon May 17 05:08:03 GMT 2021

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

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

Back to the top