Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Referencing a uml model element from a ecore model
Referencing a uml model element from a ecore model [message #622670] Fri, 29 June 2007 16:34
Andrew Jackson is currently offline Andrew JacksonFriend
Messages: 24
Registered: July 2009
Junior Member

I am trying to define a traceability meta-model that links model elements
in instances of a requirements meta-model and UML model elements.

So far i have defined a traceability meta-model that has a trace class,
which contains references to NamedElements.

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:ecore="" name="myTrace"
nsURI="myTrace" nsPrefix="myTrace">
<eClassifiers xsi:type="ecore:EClass" name="Trace">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="id"
platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//E String "/>
<eStructuralFeatures xsi:type="ecore:EReference" name="uml"
platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Name dElement "

After that i create a .genmodel for this and generate all. When i run the
editor to create a .trace model instance i can add a new named element.
This is not what i want to do tho. I want to be able to create a reference
to an existing named element in a separate .uml file.

How do i do this?

Thanks in advance,
Previous Topic:how to load uml model with stereotype info back ?
Next Topic:how to delete class.attribute(property)
Goto Forum:

Current Time: Sat Apr 04 12:33:43 GMT 2020

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

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

Back to the top