Home » Archived » GMT (Generative Modeling Technologies) » Re: oaw: Error in xtend-Editor
|
Re: oaw: Error in xtend-Editor [message #375581 is a reply to message #375578] |
Wed, 25 October 2006 10:40 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Tobias,
the Xtend component needs to be configured with the UML2Metamodel
adapter, which maps the uml types (e.g. uml::String) to the datatypes
used in the oaw typesystem.
See the reference documentation
http://www.eclipse.org/gmt/oaw/doc/4.1/r50_uml2AdapterRefere nce.pdf
If this doesn't help, please post the workflow description.
regards,
Sven
> Tobias Buhr a écrit :
>> Hi all,
>>
>> I've got a problem with the eclipse xtend-editor, it says me there is an
>> error:
>>
>> "Couldn't find operation 'createTypeDeclaration(uml::String,Boolean)'
>> for type 'jast::CompilationUnit'"
>>
>> but when starting the worklflow it works. Problem is that the types
>> uml::String and the builtin String are not identical.
>>
>> Here is the code-snippet:
>>
>> ---
>>
>> create CompilationUnit this createCompilationUnit(uml::Class c):
>> this.types.add(createTypeDeclaration(c.name,false));
>>
>> create TypeDeclaration this createTypeDeclaration(String name, Boolean
>> isInterface):
>> this.setTypeName(createSimpleName(name)) ->
>> this.setInterface(isInterface);
>>
>> ---
>>
>> What to do?
>>
>> Thanks, Tobias
|
|
|
Re: oaw: Error in xtend-Editor [message #375584 is a reply to message #375581] |
Wed, 25 October 2006 13:39 |
Eclipse User |
|
|
|
Originally posted by: tobiasbuhr.gmx.de
Sven Efftinge schrieb:
> Hi Tobias,
>
> the Xtend component needs to be configured with the UML2Metamodel
> adapter, which maps the uml types (e.g. uml::String) to the datatypes
> used in the oaw typesystem.
> See the reference documentation
> http://www.eclipse.org/gmt/oaw/doc/4.1/r50_uml2AdapterRefere nce.pdf
>
> If this doesn't help, please post the workflow description.
Hi Sven,
thanks for the advice, I didn't notice that document before.
However, the error still occurs in the editor.
Remark, that when executing the workflow everyting is goes fine.
What I've done:
- included the profiles from org.eclipse.uml2.uml.resources/profiles
(would these profiles be the right ones?)
- added UML2 profile support in the oaw-preferences page
- I tried to adapt my workflow file, but the way it is written down in
the document stated above, it doesn't work (I think the worklow is only
important for executing and not for the xtend-editor, is this assumption
right?)
Relevant part of the workflow:
---
<component id="t1" class="org.openarchitectureware.xtend.XtendComponent">
<metaModel id="mm_uml2"
class="org.openarchitectureware.type.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.uml2.uml.UMLPackage"/>
</metaModel>
<metaModel id="mm_mymodel"
class="org.openarchitectureware.type.emf.EmfMetaModel">
<metaModelPackage value="myModel.MyModelPackage"/>
</metaModel>
<metaModel id="mm_ecore"
class="org.openarchitectureware.type.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
</metaModel>
<invoke value="templates::myTemplate::transform(model)"/>
<outputSlot value="transformed_model"/>
</component>
---
Best regards, Tobias
|
|
|
Re: oaw: Error in xtend-Editor [solved] [message #375586 is a reply to message #375584] |
Wed, 25 October 2006 14:49 |
Eclipse User |
|
|
|
Originally posted by: tobiasbuhr.gmx.de
Hi again, I may answer me-self :-)
> [...]
> What I've done:
> - included the profiles from org.eclipse.uml2.uml.resources/profiles
> (would these profiles be the right ones?)
> - added UML2 profile support in the oaw-preferences page
the solution was, to move the >>UML2 profile support<< up, so that is
occurs before the >>EMF Metamodels<<.
Thanks for your attention,
Tobias
|
|
|
Re: oaw: Error in xtend-Editor [message #560410 is a reply to message #375578] |
Wed, 25 October 2006 10:40 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Tobias,
the Xtend component needs to be configured with the UML2Metamodel
adapter, which maps the uml types (e.g. uml::String) to the datatypes
used in the oaw typesystem.
See the reference documentation
http://www.eclipse.org/gmt/oaw/doc/4.1/r50_uml2AdapterRefere nce.pdf
If this doesn't help, please post the workflow description.
regards,
Sven
> Tobias Buhr a écrit :
>> Hi all,
>>
>> I've got a problem with the eclipse xtend-editor, it says me there is an
>> error:
>>
>> "Couldn't find operation 'createTypeDeclaration(uml::String,Boolean)'
>> for type 'jast::CompilationUnit'"
>>
>> but when starting the worklflow it works. Problem is that the types
>> uml::String and the builtin String are not identical.
>>
>> Here is the code-snippet:
>>
>> ---
>>
>> create CompilationUnit this createCompilationUnit(uml::Class c):
>> this.types.add(createTypeDeclaration(c.name,false));
>>
>> create TypeDeclaration this createTypeDeclaration(String name, Boolean
>> isInterface):
>> this.setTypeName(createSimpleName(name)) ->
>> this.setInterface(isInterface);
>>
>> ---
>>
>> What to do?
>>
>> Thanks, Tobias
|
|
|
Re: oaw: Error in xtend-Editor [message #560417 is a reply to message #375581] |
Wed, 25 October 2006 13:39 |
Eclipse User |
|
|
|
Originally posted by: tobiasbuhr.gmx.de
Sven Efftinge schrieb:
> Hi Tobias,
>
> the Xtend component needs to be configured with the UML2Metamodel
> adapter, which maps the uml types (e.g. uml::String) to the datatypes
> used in the oaw typesystem.
> See the reference documentation
> http://www.eclipse.org/gmt/oaw/doc/4.1/r50_uml2AdapterRefere nce.pdf
>
> If this doesn't help, please post the workflow description.
Hi Sven,
thanks for the advice, I didn't notice that document before.
However, the error still occurs in the editor.
Remark, that when executing the workflow everyting is goes fine.
What I've done:
- included the profiles from org.eclipse.uml2.uml.resources/profiles
(would these profiles be the right ones?)
- added UML2 profile support in the oaw-preferences page
- I tried to adapt my workflow file, but the way it is written down in
the document stated above, it doesn't work (I think the worklow is only
important for executing and not for the xtend-editor, is this assumption
right?)
Relevant part of the workflow:
---
<component id="t1" class="org.openarchitectureware.xtend.XtendComponent">
<metaModel id="mm_uml2"
class="org.openarchitectureware.type.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.uml2.uml.UMLPackage"/>
</metaModel>
<metaModel id="mm_mymodel"
class="org.openarchitectureware.type.emf.EmfMetaModel">
<metaModelPackage value="myModel.MyModelPackage"/>
</metaModel>
<metaModel id="mm_ecore"
class="org.openarchitectureware.type.emf.EmfMetaModel">
<metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/>
</metaModel>
<invoke value="templates::myTemplate::transform(model)"/>
<outputSlot value="transformed_model"/>
</component>
---
Best regards, Tobias
|
|
|
Re: oaw: Error in xtend-Editor [solved] [message #560423 is a reply to message #375584] |
Wed, 25 October 2006 14:49 |
Eclipse User |
|
|
|
Originally posted by: tobiasbuhr.gmx.de
Hi again, I may answer me-self :-)
> [...]
> What I've done:
> - included the profiles from org.eclipse.uml2.uml.resources/profiles
> (would these profiles be the right ones?)
> - added UML2 profile support in the oaw-preferences page
the solution was, to move the >>UML2 profile support<< up, so that is
occurs before the >>EMF Metamodels<<.
Thanks for your attention,
Tobias
|
|
| | |
Goto Forum:
Current Time: Sat Oct 19 16:18:32 GMT 2024
Powered by FUDForum. Page generated in 0.04673 seconds
|