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: Sun Jun 13 00:35:59 GMT 2021

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

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

Back to the top