Datapools and [message #49262] |
Thu, 05 January 2006 15:37 |
Eclipse User |
|
|
|
Originally posted by: peter.marshall3.vodafone.com
Hi,
I am trying to access a datapool from outside of the tptp project (but
from within an eclipse project).
Inside the class
org.eclipse.hyades.models.common.datapool.impl.Common_Datapo olFactoryImpl
at
line 256 an exception is thrown. The line reads :
Resource res = resourceSet.getResource(URI.createFileURI(dpAbsolutePath),
true);
The exception is thrown from the getResource method, the URI method
executes correctly. The exception indicates that "A registered resource
factory is missing". I suspect that this is the factory for resources
with the extension
datapool.
How do I get the datapool factory registered?
I have tried registering the common datapool factory as follows :
ResourceSet resourceSet = new
ResourceSetImpl(); resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "datapool",
new Common_DatapoolFactoryImpl());
This doesnt solve the problem. Using the .INSTANCE for the global factory
registry doesnt fix the problem either.
eclipse 3.1.0
tptp 4.0.0 / 4.0.1
hyades 4.0.0 / 4.0.1
emf 2.1.0 / 2.1.1
Thanks for any help.
Pete M.
|
|
|
Re: Datapools and [message #49290 is a reply to message #49262] |
Thu, 05 January 2006 16:19 |
Eclipse User |
|
|
|
Originally posted by: peter.marshall3.vodafone.com
Sorry,
I see from reading my post that the information was not complete;
The actual error generated is :
Cannot create a resource for '" + uri + "'; a registered resource factory
is needed"
Where the uri is file:/path/name.datapool
It is originally thrown from :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl at line 346 after a
null resource of null is created.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03965 seconds