Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » URIHandler extension(Is it possible to extend EMF URI handler?)
URIHandler extension [message #653983] Sat, 12 February 2011 12:30 Go to next message
Aur is currently offline AurFriend
Messages: 29
Registered: August 2010
Junior Member
Hi all,

I'd like to know if it's possible to extend EMF Compare URI Handler?

I mean, I'm working on a project in which models are saved with XMI id, and href values are like "simmf:/project_name/models/xmiId#xmiId" and we have got a class that transform this kind of URI to platform URI.

So, I'd like to know if there is a extension point or any other mechanism that allows us to use this transformation class.

We need to do that, because of the proxy resolution.

Thanks,

Aurélien
Re: URIHandler extension [message #655453 is a reply to message #653983] Mon, 21 February 2011 08:39 Go to previous message
Aur is currently offline AurFriend
Messages: 29
Registered: August 2010
Junior Member
We may have found a solution, if we put the URIHandler into the Resource default load option, that seems to be okay.

So when we create a Resource from an URI, we add:

resource.getDefaultLoadOptions().put(XMIResource.OPTION_URI_ HANDLER, new OurSpecificURIHandler());
Previous Topic:EMF compare in Eclipse3.5 and Eclipse3.6
Next Topic:[EMF Compare] Ecore diagram for EMF Compare metamodel?
Goto Forum:
  


Current Time: Tue Mar 19 05:18:04 GMT 2024

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

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

Back to the top