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

Bug 338811

Summary: A model registration method in the interface ICatalogSetManager
Product: z_Archived Reporter: Nicolas Guyomar <nicolas.guyomar>
Component: EMF-FacetAssignee: Gregoire Dupe <gdupe>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: emft.facet-inbox, gdupe
Version: unspecifiedFlags: gdupe: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 339255, 339259    
Attachments:
Description Flags
Patch Bug 338811
none
Patch Bug 338811
none
Patch Bug 338811
gdupe: iplog+
Patch Bug 338811 Common Core Utils
gdupe: iplog+
org.eclipse.emf.facet.util.core plug-in initial contribution gdupe: iplog+

Description Nicolas Guyomar CLA 2011-03-03 08:50:42 EST
Hi,

Regarding plug-in org.eclipse.emf.facet.util.emf.core :

catalogmanager and modeldeclaration extension point IDs should be visible so that anyone could programatically register.

This is for example used when creating a new Facet model, which is automatically registered as a modelDeclaration.

Regards,
Nicolas Guyomar
Comment 1 Nicolas Guyomar CLA 2011-03-03 08:53:09 EST
Created attachment 190267 [details]
Patch Bug 338811

Please find attached a patch which moves the ID declaration in there respective interface ICatalogManager and ICatalogSetManager


(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 2 Nicolas Guyomar CLA 2011-03-03 08:59:16 EST
Created attachment 190270 [details]
Patch Bug 338811

Hi,

I have added usual copyrights in the three modified Java classes.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 3 Gregoire Dupe CLA 2011-03-08 05:45:51 EST
Hi,

To my mind, instead of expose IDs, we should offer a model registration method in the interface ICatalogSetManager. This method would have the following signature:

public void registerFacetSetDeclaration(IFile file) throw InvalidFacetSetException;

Regards,
Grégoire
Comment 4 Nicolas Guyomar CLA 2011-03-08 08:04:14 EST
Created attachment 190652 [details]
Patch Bug 338811

Hi,

Please find attached the registration service implementation.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 5 Nicolas Guyomar CLA 2011-03-08 08:26:31 EST
Created attachment 190656 [details]
Patch Bug 338811 Common Core Utils

Hi,

Please find attached a patch on org.eclipse.emf.facet.common.core which contains some additional classes copied from org.eclipse.emf.facet.infra.common.core.
Author is Nicolas Bros, commiter

Regards,
Nicolas Guyomar
Comment 6 Gregoire Dupe CLA 2011-03-08 08:43:55 EST
Comment on attachment 190656 [details]
Patch Bug 338811 Common Core Utils


Here are a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 340.
Comment 7 Gregoire Dupe CLA 2011-03-08 08:48:10 EST
Comment on attachment 190652 [details]
Patch Bug 338811


Here are a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 341.
Comment 8 Gregoire Dupe CLA 2011-03-08 10:12:27 EST
Created attachment 190663 [details]
org.eclipse.emf.facet.util.core plug-in initial contribution

The utility classes BuildPropertiesUtils and PluginUtils have to be stored in the plug-in org.eclipse.emf.facet.util.core.

Here is the initial contribution of this plug-in.
Comment 9 Gregoire Dupe CLA 2011-03-08 10:33:04 EST
Comment on attachment 190663 [details]
org.eclipse.emf.facet.util.core plug-in initial contribution

The classes contained in this plug-in are copied from the EMF Facet project.

I've commited this plug-in.

Committed revision 343.
Comment 10 Gregoire Dupe CLA 2011-03-08 12:33:49 EST
I've marked has deprecated the moved classes (BuildPropertiesUtils and PluginUtils).

Regards,
Gregoire
Comment 11 Gregoire Dupe CLA 2011-06-08 09:26:01 EDT
This bug can be closed.