Gmf package [message #173866] |
Fri, 22 February 2008 20:08 |
Eclipse User |
|
|
|
Originally posted by: alap.gkds.com
Hello,
Package with uri 'http://www.eclipse.org/gmf/2006/mappings' not found.
What should I do if I use resouce, uri with stand-alone Eclipse.
resourceSet.getPackageRegistry().put
(GMFMapPackage.eNS_URI,
GMFMapPackage.eINSTANCE);
is not good.
Regards,
Alap
|
|
|
Re: Gmf package [message #173895 is a reply to message #173866] |
Sat, 23 February 2008 12:15 |
Eclipse User |
|
|
|
Originally posted by: Alap.gmail.com
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put
(Resource.Factory.Registry.DEFAULT_EXTENSION, new
XMIResourceFactoryImpl());
resourceSet.getPackageRegistry().put
(GMFToolPackage.eNS_URI, GMFToolPackage.eINSTANCE);
URI fileURI1 = URI.createFileURI("C:/Documents and
Settings/workspace/org.eclipse.gmf.examples.uml/model/uml.gm ftool ");
Resource res = resourceSet.getResource(fileURI1, true);
The above code is OK, but if I change:
GMFMapPackage instead of GMFToolPackage
uml.gmfmap instead of uml.gmftool
I got:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/eclipse/gmf/validate/GMFValidator
Caused by: java.lang.ClassNotFoundException:
org.eclipse.gmf.validate.GMFValidator
|
|
|
Re: Gmf package [message #173902 is a reply to message #173895] |
Sat, 23 February 2008 12:26 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Alap,
Please don't post the same question to multiple newsgroups as separate
postings. If you must cross post, use a single posting addressed to all
the groups so that answers on any one group will appear on all groups.
Alap wrote:
> ResourceSet resourceSet = new ResourceSetImpl();
>
> resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put
> (Resource.Factory.Registry.DEFAULT_EXTENSION, new
> XMIResourceFactoryImpl());
>
> resourceSet.getPackageRegistry().put
> (GMFToolPackage.eNS_URI, GMFToolPackage.eINSTANCE);
>
> URI fileURI1 = URI.createFileURI("C:/Documents and
> Settings/workspace/org.eclipse.gmf.examples.uml/model/uml.gm ftool ");
> Resource res = resourceSet.getResource(fileURI1, true);
>
> The above code is OK, but if I change:
>
> GMFMapPackage instead of GMFToolPackage
> uml.gmfmap instead of uml.gmftool
>
> I got:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/gmf/validate/GMFValidator
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.gmf.validate.GMFValidator
>
|
|
|
Re: Gmf package [message #173930 is a reply to message #173902] |
Sat, 23 February 2008 15:50 |
Eclipse User |
|
|
|
Originally posted by: Alap.google.com
Hi all,
the problem was solved using hello world plugin instead of standalone
eclipse.
Regards,
Alap
|
|
|
Powered by
FUDForum. Page generated in 0.02538 seconds