[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.stp.sca-tools] Re: ecore model instance

Mischa a écrit :
Hi,

now I tried loading the XML using the Ecore mechanism. Unfortunately it failed. When using the ScaResourceImpl I get into trouble since the implementation can't hanlde the eclipse "platform" scheme (java.net.MalformedURLException: unknown protocol: platform).

This should work.
Have a look at ScaExample.java (plugin org.eclipse.stp.sca.test) and at URI.createPlatformResourceURI(String, boolean).
Moreover, to create the Resource, use the SCAResourceFactoryImpl.


Stephane Drapeau
Obeo