Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Gmf package
Gmf package [message #173866] Fri, 22 February 2008 20:08 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
Originally posted by: Alap.google.com

Hi all,

the problem was solved using hello world plugin instead of standalone
eclipse.

Regards,
Alap
Previous Topic:how to avoid two child-views overlapping each other?
Next Topic:Multi GMF
Goto Forum:
  


Current Time: Thu Apr 25 01:52:33 GMT 2024

Powered by FUDForum. Page generated in 0.02538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top