|
Re: resource [message #112761 is a reply to message #112719] |
Wed, 20 February 2008 18:51 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Hi Attila,
I suggest that you ask this question on the EMF newsgroup which I added.
Cheers
/Eike
Attila schrieb:
> 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
>
|
|
|
Re: resource [message #112774 is a reply to message #112761] |
Wed, 20 February 2008 18:52 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Ahh, a cross posting, naughty!
Eike Stepper schrieb:
> Hi Attila,
>
> I suggest that you ask this question on the EMF newsgroup which I added.
>
> Cheers
> /Eike
>
>
> Attila schrieb:
>> 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
>>
|
|
|
Re: resource [message #615524 is a reply to message #112719] |
Wed, 20 February 2008 18:51 |
|
Hi Attila,
I suggest that you ask this question on the EMF newsgroup which I added.
Cheers
/Eike
Attila schrieb:
> 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
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: resource [message #615525 is a reply to message #112761] |
Wed, 20 February 2008 18:52 |
|
Ahh, a cross posting, naughty!
Eike Stepper schrieb:
> Hi Attila,
>
> I suggest that you ask this question on the EMF newsgroup which I added.
>
> Cheers
> /Eike
>
>
> Attila schrieb:
>> 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
>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.02407 seconds