|
|
|
|
|
|
Re: Resolve platform:/resources outside the platform [message #1240930 is a reply to message #1234549] |
Fri, 07 February 2014 08:38 |
Ed Merks Messages: 33133 Registered: July 2009 |
Senior Member |
|
|
Felix,
If you know "ahead of time" which things you want to redirect, you can
always use the resource set's URI converter's URI map to redirect
platform:/resource/<project> to some other URI that represents the
location of that project.
On 22/01/2014 9:36 AM, Felix Dorner wrote:
> Hey,
>
> > Within your own application you can play games with ResourceSet
> locators.
>
> You mean
> http://download.eclipse.org/modeling/emf/emf/javadoc/2.8.0/org/eclipse/emf/ecore/resource/impl/ResourceSetImpl.ResourceLocator.html
>
> These look good. Unfortunately I'm on EMF 2.6 :(. But thanks very much
> for pointing it out.
>
> I can't change the file extensions either, nor use a custom protocol.
> The only way I can think of solving my problem is to find a hook in
> the API where, right before the URIHandler opens the stream, I locate
> my project in the environment (Basically I have to search , in a set
> of directories outside the workspace root) and import it. Then the
> URIHandler continues as if the project had always been in the
> workspace. Maybe the only solution is to use a high-priority
> customized PlatformResourceURIHandler (High-priority by adding it
> before any of the built-in resource handlers).
>
>
>
> Felix
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03918 seconds