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

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?

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

Current Time: Mon Jun 27 12:42:54 GMT 2022

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

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

Back to the top