Skip to main content



      Home
Home » Modeling » Epsilon » Import of ecore
Import of ecore [message #1066676] Wed, 03 July 2013 13:10 Go to next message
Eclipse UserFriend
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 06:10 Go to previous messageGo to next message
Eclipse UserFriend
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 06:11] by Moderator

Re: Import of ecore [message #1066780 is a reply to message #1066770] Thu, 04 July 2013 06:42 Go to previous messageGo to next message
Eclipse UserFriend
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 03:28 Go to previous message
Eclipse UserFriend
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:Support of several editors, based on the same metamodel
Next Topic:[EOL] Model objects manipulation (copying...)
Goto Forum:
  


Current Time: Tue Jul 22 20:13:17 EDT 2025

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

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

Back to the top