Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [MOFScript] eAnnotations-question
[MOFScript] eAnnotations-question [message #599740] Sun, 27 May 2007 21:07
Eclipse UserFriend
Originally posted by:

Hi everybody,

i am trying to access the following eAnnotations - entry of a UML2 Model
using MOFScript.

<transition xmi:id="_HBYoxP5OEdut2qo8JgL_7Q" name="OVERVIEW"
target="_HBO3i_5OEdut2qo8JgL_7Q" source="_HBO3gv5OEdut2qo8JgL_7Q">
<eAnnotations xmi:id="_HBYoxf5OEdut2qo8JgL_7Q" source="abstract">
<details xmi:id="_HBYoxv5OEdut2qo8JgL_7Q" key="type"
<details xmi:id="_HBYox_5OEdut2qo8JgL_7Q" key="stereotype"
value="State Transition"/>
<details xmi:id="_HBYoyP5OEdut2qo8JgL_7Q" key="bendpoints"

I tried the following transformation:

texttransformation ExampleTransformation (in
uml:"") {
uml.Transition::main () {
//do something

This results in the following error message:

Error: MTTParseError: Type not found: 'EAnnotation' in metamodel 'uml',
line: 0, column: 0

Is there any way in MOFScript to access the eAnnotations content?
Any help is appreciated.

Previous Topic:[Xpand] properties with the same name as keywords
Next Topic:[TCS] running samples, compiler, runtime
Goto Forum:

Current Time: Mon Jun 25 20:04:24 GMT 2018

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

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

Back to the top