Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Quite empty editor project
Quite empty editor project [message #527031] Tue, 13 April 2010 18:39 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040805040903060707070602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
I see something strange, when I create a genmodel for the attached ecore and generate the EMF code the editor project is
quite empty (only a plugin class that's all). I tried creating the genmodel from scratch but got the same result. Is
there a setting I am missing? I created the model project manually (so not through new emf project) but it is a standard
eclipse plugin project.

I am trying this on Eclipse 3.5.

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org

--------------040805040903060707070602
Content-Type: text/xml;
name="texo-annotations-model.ecore"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="texo-annotations-model.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="annotationsmodel"
nsURI="http://www.eclipse.org/emf/texo/annotations/model" nsPrefix="annotationsmodel">
<eClassifiers xsi:type="ecore:EClass" name="ENamedElementAnnotation" abstract="true">
<eOperations name="getJavaAnnotation" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E String ">
<eParameters name="identifier" lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E String "/>
</eOperations>
<eStructuralFeatures xsi:type="ecore:EReference" name="eNamedElement" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E NamedElement "/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EClassifierAnnotation" abstract="true"
eSuperTypes="#//ENamedElementAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eClassifier" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Classifier "
changeable="false" volatile="true" transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EClassAnnotation" abstract="true" eSuperTypes="#//EClassifierAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eClass" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Class "
volatile="true" transient="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="eStructuralFeatureAnnotations"
upperBound="-1" eType="#//EStructuralFeatureAnnotation"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EDataTypeAnnotation" abstract="true"
eSuperTypes="#//EClassifierAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eDataType" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E DataType "
volatile="true" transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EStructuralFeatureAnnotation" abstract="true"
eSuperTypes="#//ENamedElementAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eStructuralFeature" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E StructuralFeature "
changeable="false" volatile="true" transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EPackageAnnotation" abstract="true"
eSuperTypes="#//ENamedElementAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="ePackage" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Package "
volatile="true" transient="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="eClassifierAnnotations"
upperBound="-1" eType="#//EClassifierAnnotation" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EReferenceAnnotation" abstract="true"
eSuperTypes="#//EStructuralFeatureAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eReference" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Reference "
volatile="true" transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EAttributeAnnotation" abstract="true"
eSuperTypes="#//EStructuralFeatureAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eAttribute" lowerBound="1"
eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Attribute "
volatile="true" transient="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="EEnumAnnotation" abstract="true" eSuperTypes="#//EDataTypeAnnotation">
<eStructuralFeatures xsi:type="ecore:EReference" name="eEnum" lowerBound="1" eType="ecore:EClass platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E Enum "
volatile="true" transient="true"/>
</eClassifiers>
</ecore:EPackage>

--------------040805040903060707070602--
Re: Quite empty editor project [message #527061 is a reply to message #527031] Tue, 13 April 2010 20:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Martin,

All the classes are abstract so there are no classes the editor could
create.


Martin Taal wrote:
> Hi,
> I see something strange, when I create a genmodel for the attached
> ecore and generate the EMF code the editor project is quite empty
> (only a plugin class that's all). I tried creating the genmodel from
> scratch but got the same result. Is there a setting I am missing? I
> created the model project manually (so not through new emf project)
> but it is a standard eclipse plugin project.
>
> I am trying this on Eclipse 3.5.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Quite empty editor project [message #527065 is a reply to message #527061] Tue, 13 April 2010 21:03 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Thanks Ed, clear, my idea was/is to add the non-abstract subtypes through other models.

gr. Martin

Ed Merks wrote:
> Martin,
>
> All the classes are abstract so there are no classes the editor could
> create.
>
>
> Martin Taal wrote:
>> Hi,
>> I see something strange, when I create a genmodel for the attached
>> ecore and generate the EMF code the editor project is quite empty
>> (only a plugin class that's all). I tried creating the genmodel from
>> scratch but got the same result. Is there a setting I am missing? I
>> created the model project manually (so not through new emf project)
>> but it is a standard eclipse plugin project.
>>
>> I am trying this on Eclipse 3.5.
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: Quite empty editor project [message #527066 is a reply to message #527065] Tue, 13 April 2010 21:08 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Martin,

In the past we didn't have the ability to contribute children via other
models. There remains the problem that the wizard can't create
anything so I guess we'd still not generate that...


Martin Taal wrote:
> Thanks Ed, clear, my idea was/is to add the non-abstract subtypes
> through other models.
>
> gr. Martin
>
> Ed Merks wrote:
>> Martin,
>>
>> All the classes are abstract so there are no classes the editor could
>> create.
>>
>>
>> Martin Taal wrote:
>>> Hi,
>>> I see something strange, when I create a genmodel for the attached
>>> ecore and generate the EMF code the editor project is quite empty
>>> (only a plugin class that's all). I tried creating the genmodel from
>>> scratch but got the same result. Is there a setting I am missing? I
>>> created the model project manually (so not through new emf project)
>>> but it is a standard eclipse plugin project.
>>>
>>> I am trying this on Eclipse 3.5.
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:loading genmodel in separate java application
Next Topic:Teneo + GMF Exception: "Could not initialize a collection"
Goto Forum:
  


Current Time: Thu Mar 28 12:28:30 GMT 2024

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

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

Back to the top