[Xcore] Problem with a package starting "http://" [message #893994] |
Fri, 06 July 2012 11:14  |
|
Hi,
Is there a way to specify a package named "http://www.eclipse.org/xcore" in Xcore because it currently gives me the following error: "missing EOF at ':'".
@GenModel(basePackage="org.eclipse.xcore")
package http://www.eclipse.org/xcore
It seems that with Xcore we should use uri like "org.eclipse.xcore" but my application uses an uri handler and an uri like is converted during the resolution since it is detected as a relative uri.
org.eclipse.emf.common.util.URI.createURI("org.eclipse.xcore").resolve(org.eclipse.emf.common.util.URI.createFileURI("C:\\some\\stuff\\here"))
RESULT: (org.eclipse.emf.common.util.URI) file:/C:/some/stuff/org.eclipse.xcore
org.eclipse.emf.common.util.URI.createURI("http://www.eclipse.org/xcore").resolve(org.eclipse.emf.common.util.URI.createFileURI("C:\\some\\stuff\\here"))
RESULT: (org.eclipse.emf.common.util.URI) http://www.eclipse.org/xcore
Regards,
Stephane Begaudeau
|
|
|
|
Powered by
FUDForum. Page generated in 0.01470 seconds