Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Ecore Model Problem
GMF Ecore Model Problem [message #507401] Wed, 13 January 2010 06:37 Go to previous message
Thomas is currently offline Thomas
Messages: 79
Registered: October 2009
Member
hi, i have a problem with generating a gmf Editor.

My Core Problem:

-LineHandles are be able to "paint" on my ShapesDiagram (works^^)

-LineHandles are able to "paint" in Line (rectangle) (don“t work)

My Ecore Model:

<?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="shapesModel"
nsURI="http://shapesModel" nsPrefix="shapesModel">
<eClassifiers xsi:type="ecore:EClass" name="Shape"/>
<eClassifiers xsi:type="ecore:EClass" name="RectangularShape" eSuperTypes="#//Shape"/>
<eClassifiers xsi:type="ecore:EClass" name="EllipticalShape" eSuperTypes="#//Shape"/>
<eClassifiers xsi:type="ecore:EClass" name="Line" eSuperTypes="#//Shape">
<eStructuralFeatures xsi:type="ecore:EReference" name="linehandles" upperBound="-1"
eType="#//LineHandle" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="LineHandle" eSuperTypes="#//Shape"/>
<eClassifiers xsi:type="ecore:EClass" name="ShapeDiagram">
<eStructuralFeatures xsi:type="ecore:EReference" name="shapes" upperBound="-1"
eType="#//Shape" containment="true"/>
</eClassifiers>
</ecore:EPackage>

Thanks

Thomas
 
Read Message
Read Message
Previous Topic:Fix connection anchor when resizing source/target figure
Next Topic:problem with nested elements and wrappers
Goto Forum:
  


Current Time: Tue May 21 20:15:35 EDT 2013

Powered by FUDForum. Page generated in 0.01550 seconds