Bug 438126 - Using "Initialize Ecore Diagram" within a modeling project lead to an inconsistent state.
Summary: Using "Initialize Ecore Diagram" within a modeling project lead to an inconsi...
Status: RESOLVED FIXED
Alias: None
Product: Ecoretools
Classification: Modeling
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: 2.0.1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 441716 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-25 03:59 EDT by Cedric Brun CLA
Modified: 2014-08-13 13:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Brun CLA 2014-06-25 03:59:24 EDT
Right now using the .ecore file contextual action will only work if the .ecore file is not in a modeling project.  It will actually work but will create another .aird file in the project leading to Sirius complaining as it is not a valid Modeling project layout.

We should : check if the enclosing project is a modeling project, and in this case add the .ecore and/or the representation in the already existing .aird file.
Comment 1 Cedric Brun CLA 2014-06-26 08:14:52 EDT
Another issue I should try to address at the same time :
 
1. After "Initialize Ecore Diagram", .aird file doesn't show up in Eclipse
> Project Explorer view, but the file exists in the filesystem. F5 doesn't
> make it show up. Re-Initialize Ecore Diagram still won't make it show up.
> Restart Eclipse doesn't make it show up, but after restart I can
> re-initialize Ecore Diagram and it'll show up.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=438248#c2
Comment 2 Cedric Brun CLA 2014-06-26 10:51:06 EDT
A fix has been commited :  http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/commit/?id=41fdd5c4a1bd21a572ecc59a8970616a8daecc25

A build fixing this issue is available either through this update site :

http://download.eclipse.org/ecoretools/updates/nightly/2.0.x/luna

Or by using the "Install Modeling Components" wizard available in the "Help" menu and selecting "EcoreTools (Updates)"
Comment 3 Cedric Brun CLA 2014-06-26 10:51:20 EDT
Oops, forgot to resolve the bug.
Comment 4 Cedric Brun CLA 2014-08-13 13:25:15 EDT
*** Bug 441716 has been marked as a duplicate of this bug. ***