Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357776

Summary: Project can be exported/imported as model element
Product: [Modeling] ECP Reporter: Nikolay Kasyanov <corrmage>
Component: CommonAssignee: Project Inbox <emfcp.common-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: jhelming
Version: unspecified   
Target Milestone: 0.9.0M1   
Hardware: All   
OS: All   
Whiteboard:

Description Nikolay Kasyanov CLA 2011-09-15 06:51:24 EDT
Build Identifier: M20110909-1335

One can export project as model element. I think "Export Model Element" should be removed from project context menu. It leads to problems: one can export project as model element and import it into project, and there will be project in project.

Reproducible: Always

Steps to Reproduce:
1. Export project using "Export model element" menu
2. Import it using "Import model element" in another project
3. See project in project
Comment 1 Jonas Helming CLA 2011-09-19 09:21:22 EDT
this is actually hard to fix. The root node is given by the storage provider. When using EMFStore, the root node is a project, which itself is an EObject. ECP allows to import/export EObjects and therefore also the project. There is not good way to filter out the root node, as ECP does not no the class project from EMFStore :-(