Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Xcore] Bug? import ecore.EcorePackage; is generate is *PackageImpl
[Xcore] Bug? import ecore.EcorePackage; is generate is *PackageImpl [message #949725] Fri, 19 October 2012 08:18 Go to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 11
Registered: July 2009
Junior Member
Hi

I think something changed in the last release of the platform. If I have
an Xcore metamodel which ¨refers¨ to an Xtext metamodel then when a
clean is performed, this line of code appears in the *PackageImpl.:

import ecore.EcorePackage;

Has anyone encountered this problem? At the moemnt the solution is to
not use the generated metamodel from XText and to split the
functionality into one Xcore project with my metamodel and a separate
Xtext editor for the my Xcore metamodel.

-H
Re: [Xcore] Bug? import ecore.EcorePackage; is generate is *PackageImpl [message #949741 is a reply to message #949725] Fri, 19 October 2012 08:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hugo,<br>
<br>
Comments below.<br>
<br>
<div class="moz-cite-prefix">On 19/10/2012 10:18 AM, Hugo A. Garcia
wrote:<br>
</div>
<blockquote cite="mid:k5r2dh$e3k$1@xxxxxxxxe.org" type="cite">Hi
<br>
<br>
I think something changed in the last release of the platform. If
I have an Xcore metamodel which &uml;refers&uml; to an Xtext metamodel
then when a clean is performed, this line of code appears in the
*PackageImpl.:
<br>
<br>
import ecore.EcorePackage;
<br>
</blockquote>
Hmmm.&nbsp; Like a version of Ecore where the GenPackage doesn't have the
basePackage properly set.<br>
<blockquote cite="mid:k5r2dh$e3k$1@xxxxxxxxe.org" type="cite">
<br>
Has anyone encountered this problem?</blockquote>
No, but there are definitely issues with how Xtext persists their
models as well as their tendency to put them in the src folder
rather than in the models folder.<br>
<blockquote cite="mid:k5r2dh$e3k$1@xxxxxxxxe.org" type="cite"> At
the moemnt the solution is to not use the generated metamodel from
XText and to split the functionality into one Xcore project with
my metamodel and a separate Xtext editor for the my Xcore
metamodel.
<br>
</blockquote>
Please open a bugzilla with a simple test case that I can use to
reproduce the problem.&nbsp; In general there are problems with models
that contain cross project references which are fixed the following
bugzilla which is awaiting review:<br>
<blockquote><a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=390411">https://bugs.eclipse.org/bugs/show_bug.cgi?id=390411</a><br>
</blockquote>
There are also issues with Xtext's GenModels and Ecore models
containing absolute platform:/resource references where they
"should" contain relative references so they can be properly
resolved to other installed bundles...<br>
<blockquote cite="mid:k5r2dh$e3k$1@xxxxxxxxe.org" type="cite">
<br>
-H
<br>
</blockquote>
<br>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Most mature Store for CDO?
Next Topic:isModified() returns true on undo though reverting to saved state
Goto Forum:
  


Current Time: Fri Apr 26 04:15:42 GMT 2024

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

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

Back to the top