Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo resource URI implementation
Teneo resource URI implementation [message #612603] Tue, 20 November 2007 14:08
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member
In continuation of my post to org.eclipse.emf:

My understanding is that EMF has a pluggable URI-based model loading
scheme. I'm not a guru, but I've just been reading the API javadoc for
ResourceSet, Resource and URIConverter. From what Ed Merks wrote, EMF
2.4 provides better support for capability inspection of URIs, but how
hard would it be to get that into Teneo 0.8.x with EMF 2.3?

I'm looking at the source of Teneo 0.8 and there's a HibernateResource
extending (via StoreResource) the basic EMF ResourceImpl. I see it
registered with the so called "Resource.Factory" for the
"hibernate://.." URI syntax in class HbDataStore. What would I have to
do to convince the generated EMF editor that one should be able to edit
models loaded from Teneo URIs?

Ed Merks wrote:

> Alexandros,
> Comments below.
> Alexandros Karypidis wrote:
>> Hi,
>> I've got an EMF model which is persisted using Teneo & Hibernate to a
>> Derby database in an RCP application. I have three problems with the
>> generated RCP editor:
>> 1) It is read-only (I can't edit anything).
> It should be possible to improve this kind of behavior in EMF 2.4 since
> URIHandler will support isReadOnly directly. Right now that's supported
> in AdapterFactoryEditingDomain like this which basically assumes that
> anything that's not platform:/resource, or file:/whatever will be read only.
> protected boolean isReadOnlyURI(URI uri)
> {
> if (uri.isArchive())
> {
> return isReadOnlyURI(URI.createURI(uri.authority()));
> }
> return !uri.isPlatformResource() && (uri.isRelative() ||
> !uri.isFile());
> }
> You'll need to specialize this method.
> I should talk to Martin about providing a HibernateURIHandlerImpl for
> the Teneo version that goes with EMF 2.4 for handling things like
> isReadOnly, delete and things like timestamps...
Previous Topic:[Ecore Tools] Inconsistencies building from CVS
Next Topic:[Teneo] Timeout after 8 hours
Goto Forum:

Current Time: Tue Apr 23 01:57:06 GMT 2024

Powered by FUDForum. Page generated in 0.03074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top