Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Import of ecore
Import of ecore [message #1066676] Wed, 03 July 2013 17:10 Go to next message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
Hi,

I'm wondering how the import with Emfatic is working. As an example:

Ecore 1:

@namespace(
	uri="/org.model.variability/model/pld.ecore",
	prefix="p")

package pld;

@gmf.diagram(onefile="true", diagram.extension="pld", model.extension="pld")
class PL{

  	unsettable attr EString name = "PL";
}
....


Ecore 2:

@namespace(
	uri="/org.model.variability.hw/model/hw.ecore",
	prefix="p")

package hw;

import "platform:/resource/org.model.variability/model/pld.ecore";


In my second emf file, I imported the ecore of the first emf file. When I generate now an GMF Editor out of my second emf file, will the class PL used as diagram? In the metamodel, this class is used from both editors.. How is it possible to realise this?

Btw., what is the meaning of "prefix"?
Re: Import of ecore [message #1066770 is a reply to message #1066676] Thu, 04 July 2013 10:10 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
Hi Phil,

Eugenia currently only supports self-contained Ecore metamodels. Could you please file an enhancement request so that we can investigate how metamodels that span across several files can be supported?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=epsilon

"prefix" is used in the XMI serialisation process to distinguish between elements conforming to classes from different metamodels.

Cheers,
Dimitris

[Updated on: Thu, 04 July 2013 10:11]

Report message to a moderator

Re: Import of ecore [message #1066780 is a reply to message #1066770] Thu, 04 July 2013 10:42 Go to previous messageGo to next message
Phil H is currently offline Phil H
Messages: 267
Registered: November 2012
Senior Member
Thx for the answer, the request is now online: https://bugs.eclipse.org/bugs/show_bug.cgi?id=412290

So you mean that the import statement doesn't work for Eugenia right now?
Is there maybe a quick workaround for this? Generating the ecore is possible, so I can maybe use it then as starting point?

Cheers,
Phil
Re: Import of ecore [message #1066923 is a reply to message #1066780] Fri, 05 July 2013 07:28 Go to previous message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 886
Registered: July 2009
Senior Member
Hi Phil,

I'm afraid I can't see a quick workaround for this, other than to merge all metamodels under one file.

Cheers,
Dimitris
Previous Topic:[Emfatic] Error while importing ecore
Next Topic:[EOL] Model objects manipulation (copying...)
Goto Forum:
  


Current Time: Sat Oct 25 12:18:08 GMT 2014

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

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