Not sure if it is recommended, but you can create a hidden project and link the 
external file/folder there. Once you have it, you have full IResource 
functionality.
A different approach would be to attach markers to existing resources/projects 
which require those external files (or even workspace root), and try to teach 
Problems view to use URI and not IResource to resolve the thing to open on 
double click. Later requires patch for Problems view.

Kind regards,
Andrey Loskutov

Спасение утопающих - дело рук самих утопающих

https://www.eclipse.org/user/aloskutov


> Gesendet: Mittwoch, 03. April 2019 um 08:53 Uhr
> Von: "Alexander Fedorov" <alexander.fedo...@arsysop.ru>
> An: platform-dev@eclipse.org
> Betreff: [platform-dev] IResource representation for non-workspace URI
>
> Hello,
> 
> There are scenarios with external files and with files from metadata 
> area that should be processed as "workspace resources".
> For example, if external file is involved to some kind of validation it 
> will be good to see the failures in the Problem View.
> And the Problem View requires IMarkers, and the IMarker needs IResource.
> 
> What is the recommended approach to wrap external URIs with IResource 
> interface?
> 
> Regards,
> AF
> _______________________________________________
> platform-dev mailing list
> platform-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://www.eclipse.org/mailman/listinfo/platform-dev
>
_______________________________________________
platform-dev mailing list
platform-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/platform-dev

Reply via email to