Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315193 - Wizard "Xtext Project From Existing Ecore Models" can not handle several packages of the same ecore model
Summary: Wizard "Xtext Project From Existing Ecore Models" can not handle several pack...
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Backlog (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 08:11 EDT by Frank Kühnlenz CLA
Modified: 2012-11-14 04:09 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Kühnlenz CLA 2010-06-01 08:11:33 EDT
Build Identifier: I20100520-1744

My existing ecore model has several packages:
-    root_package
--    package_A
--    package_B
--    package_C

and within package A classes from package B and C are referenced.

Now I used the project creation wizard "Xtext Project From Existing
Ecore Models" with the root_package as default package.

The generated xtext file contains now three imports:

import "platform:/resource/testProject/test.ecore" as package_A
import "platform:/resource/testProject/test.ecore" as package_B
import "platform:/resource/testProject/test.ecore" as package_C

But there are error messages on that import statements:
"EPackage [...] is used twice."

I posted it in the newsgroup eclipse.modeling.tmf and got this answer by Sven Efftinge:

That's a bug in the wizard (please file a bug report).
You need to add the fragment part to the URIs. They should looke like
this:

platform:/resource/testProject/test.ecore#//package_A

Reproducible: Always

Steps to Reproduce:
1. have an ecore model with several packages
2. use the wizard "Xtext Project From Existing Ecore Models"