Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 292220 - Common catalog and resource features
Summary: Common catalog and resource features
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.8.0 M4   Edit
Assignee: Hugo Bruneliere CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-14 04:08 EDT by Gregoire Dupe CLA
Modified: 2013-04-29 07:55 EDT (History)
4 users (show)

See Also:


Attachments
org.eclipse.gmt.modisco.common.core patch (40.88 KB, text/plain)
2009-10-14 04:08 EDT, Gregoire Dupe CLA
gdupe: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gregoire Dupe CLA 2009-10-14 04:08:26 EDT
Created attachment 149500 [details]
org.eclipse.gmt.modisco.common.core patch

Hi,

You can find in the attachments a patch for the
org.eclipse.gmt.modisco.common.core plug-in.

This patch contains a class named AbstractMoDiscoCatalog. This class results
from the factorization of the code that is used to implements the query and
uiCustom catalogs. Now to implement a catalog we just have to write an
AbstractMoDiscoCatalog sub class and to implement a few abstract methods.

The class EcoreCatalog is an example of the AbstractMoDiscoCatalog use. This
catalog contains the reference to the ecore file stored in the MoDisco
projects. Those ecore files will be hot loaded to be usable without installing
a generated plug-in.

The other main class of this patch is the MoDiscoResourceSet class, which is a
sub class of ResourceSetImpl. This class provides a singleton to be sure that
all the EMF resources used by MoDisco are stored in the same ResourceSet. The
MoDiscoResourceSet class also provides a new method: public Resource
getResource(URI, IMoDiscoResourceListener). The class is used to load or get a
resource and get feed back about its reload. The IMoDiscoResourceListener
instance passed in the second parameter will be notified when the resource will
re reloaded.

Regards,
Grégoire
Comment 1 Hugo Bruneliere CLA 2009-10-14 05:06:37 EDT
Hi Gregoire,

Thanks for continuously upgrading your previous contribution. I will test your patch as soon as possible.

Regards,

Hugo
Comment 2 Gregoire Dupe CLA 2009-10-14 05:12:12 EDT
I confirm that

1. I, DUPE Grégoire, and others contributors listed in this bug, authored 100%
of the content
2. I have the rights to donate the content to Eclipse under the EPL
3. I have already provided the filled Employer Consent Forms to the Foundation

Grégoire DUPE.
Comment 3 Hugo Bruneliere CLA 2009-10-14 07:32:57 EDT
Patch successfully integrated!
Comment 4 Gregoire Dupe CLA 2010-10-05 05:33:18 EDT
Hi,

I’ve created a CQ for this bug:
https://dev.eclipse.org/ipzilla/show_bug.cgi?id=4530

Regards,
Gregoire Dupe