URIHandler extension [message #653983] |
Sat, 12 February 2011 07:30  |
Eclipse User |
|
|
|
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 03:39  |
Eclipse User |
|
|
|
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());
|
|
|
Powered by
FUDForum. Page generated in 0.03874 seconds