Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » resource
resource [message #615521] Wed, 20 February 2008 16:16
a is currently offline aFriend
Messages: 75
Registered: July 2009
Member
Hello,

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
public class merge {
public static void main(String[] args) {
URI uri = URI.createFileURI("C:/uml.ecore");
Resource res =
Resource.Factory.Registry.INSTANCE.getFactory(uri).createRes ource(uri);
}}

I got NullPointerException for this so short code.
I use simple java with plugin dependencies, and I would like to create a
file using uri, resource.
What should be the mistake and how can I repair it?

Regards,
Attila
Previous Topic:[Teneo] Solution for XMLGregorianCalendar problems
Next Topic:HbResourceImpl
Goto Forum:
  


Current Time: Thu Mar 28 23:08:58 GMT 2024

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

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

Back to the top