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

Bug 333187

Summary: [Dawn] Provide integration for Ecore Tools
Product: [Modeling] EMF Reporter: Martin Fluegge <martin.fluegge>
Component: cdo.dawnAssignee: Martin Fluegge <martin.fluegge>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 Keywords: noteworthy
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch v1
none
Patch v2
none
Patch v3 - bugfix
none
Patch v4
none
Tests v1 none

Description Martin Fluegge CLA 2010-12-24 05:58:17 EST
The Ecore Tools provide a nice set of tools to create ecore models. Currently they are focused on file system persistence. To allow provide a better integration with CDO tools should be CDOified using Dawn.
Comment 1 Martin Fluegge CLA 2010-12-28 09:45:52 EST
The first state is available from CVS 'org.eclipse.emf.cdo.dawn.ecoretools.diagram.dawn'. The next step will be to customized the creation wizard to make it look like the original one.
Comment 2 Martin Fluegge CLA 2010-12-28 09:50:47 EST
Created attachment 185860 [details]
Patch v1

The plugin is not yet officially integrated into any feature. So everyone who wants to try the current state of developments needs to apply the attached patch and update the target platform accordingly.
Comment 3 Martin Fluegge CLA 2011-02-20 15:58:19 EST
I started to implement the overwritten wizard for the Ecore Tools. The wizard now looks the the Ecore Tools native one. It already works to initialize a diagram from an existing resource which is selected from the repository. Creating a new one it still to do but I do not expect much work left in this area.
There is some polish here and there, but I am quite optimistic that this stuff can be finished soon.
Comment 4 Martin Fluegge CLA 2011-02-20 16:00:41 EST
Committed revision 7161
Comment 5 Martin Fluegge CLA 2011-03-15 11:23:49 EDT
I enabled the creation of new resources. Now the wizard behaves quite similar to the original one. Only the selection of the reosurce folder is different. I will care for it in the next iteration.
Comment 6 Martin Fluegge CLA 2011-03-15 11:24:02 EDT
Committed revision 7538
Comment 7 Martin Fluegge CLA 2011-03-16 16:39:06 EDT
Enabled Ecore Tools features
Comment 8 Martin Fluegge CLA 2011-03-16 16:39:15 EDT
Committed revision 7546
Comment 9 Martin Fluegge CLA 2011-04-15 12:42:32 EDT
Created attachment 193391 [details]
Patch v2

Attached a patch for enabling the feature. This will be committed if it is ensured that declaring the diagram host bundle in the cspec is the preferred way to handle fragments and host-bundle.
Comment 10 Martin Fluegge CLA 2011-04-15 15:18:55 EDT
Created attachment 193401 [details]
Patch v3 - bugfix

For an unknown reason the ecore tools implementation overwrites the behavior of the EPackageCanonicalEditingPolicy and deletes all semantic information from the edges. This lead to trouble with the extended editor. The EP also is not registred as canonical editingpolicy, but as "pseudocanonical". I needed to change the EPprovider to overwrite the original behavior.
Comment 11 Martin Fluegge CLA 2011-04-15 15:22:04 EDT
Patch v3 - Committed revision 7621
Comment 12 Martin Fluegge CLA 2011-05-09 16:51:37 EDT
Created attachment 195147 [details]
Patch v4

Publish feature
Comment 13 Martin Fluegge CLA 2011-05-09 16:52:16 EDT
Committed revision 7668:
- trunk/releng/org.eclipse.emf.cdo.releng
Comment 14 Martin Fluegge CLA 2011-05-09 16:52:20 EDT
Committed revision 7669:
- trunk/features/org.eclipse.emf.cdo.dawn.ecoretools-feature
- trunk/features/org.eclipse.emf.cdo.dawn.sdk-feature
Comment 15 Martin Fluegge CLA 2011-05-09 16:52:33 EDT
Committed revision 7668
Comment 16 Martin Fluegge CLA 2011-05-18 14:30:19 EDT
Created attachment 196032 [details]
Tests v1

Attached tests.
Comment 17 Martin Fluegge CLA 2011-05-18 14:31:49 EDT
Committed revision 7816
Comment 18 Martin Fluegge CLA 2011-05-18 14:57:58 EDT
Finished and closed
Comment 19 Eike Stepper CLA 2011-05-18 16:51:10 EDT
(In reply to comment #18)
> Finished and closed

Definitely not closed, yet, but resolved. Resolved bugs get closed when the next release is published and a new cycle initialized ;-)
Comment 20 Martin Fluegge CLA 2011-05-19 01:55:28 EDT
Yeah, you are right. Use the wrong words. But at least I hit the right button ;)

State of this one certainly is "resolved fixed"
Comment 21 Eike Stepper CLA 2011-06-23 03:37:41 EDT
Available in R20110608-1407