Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357776 - Project can be exported/imported as model element
Summary: Project can be exported/imported as model element
Status: CLOSED WONTFIX
Alias: None
Product: ECP
Classification: Modeling
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.9.0M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-15 06:51 EDT by Nikolay Kasyanov CLA
Modified: 2012-05-02 13:19 EDT (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 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 :-(