Am 22.02.12 08:47, schrieb Watabe Kichi:
> I'd like to know how to use IResourcePool.
> I can inject IResourcePool, but don't know how to set resources.
> I read the source code.
> It seems it (eventually?) calls an OSGi Service and uses
> IResourceProviderService's properties to get resources.
> Do I have to implement IResourceProviderService and it's properties in
> my app?
> Or is there an easy way to set resources?
No - currently the only way is to provide an OSGi-Service but you are
free to grab the sources and implement new features, provide a patch and
we can discuss if this feature is feasable.
There is a base class available which you can simply subclass
(BasicResourceProvider) and use DS to contribute.
It seems org.eclipse.e4.tools.emf.ui.internal.ResourceProvider just defines properties as String.
So I made an empty subclass of BasicResourceProvider and set the service's properties entry to preference setting file.
I don't know if this is the correct way, but it works for now.