|
|
Re: [Texo] Use resource as GMF input [message #1402296 is a reply to message #1401326] |
Wed, 16 July 2014 20:43 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Bastian,
I am somewhat in doubt on what to do. It is not difficult probably to set a dummy proxy id. But I am somewhat surprised
that this happens, new objects to a resource are generally not a proxy, so they don't have a proxy uri set. Or do they
in the case of gmf?
gr. Martin
On 15-07-14 14:57, Bastian Wagenfeld wrote:
> Hi Martin,
>
> I fixed this. I just did not register the protocol correctly. Now, the model ist loaded correctly. That leads to errors
> while trying to drop new objects into the model. Since org.eclipse.gmf.runtime.emf.core.util.Util.getProxyID(EObject
> proxy) tries to retrieve an URI fragment, which is not available, because the object is not persisted at this moment. So
> a NPE is thrown. I don't know, if it's a standard by EMF to always return a fragment or not, but the TexoResource does
> not set a fragment for a non-saved object. Does the object has to be persisted at first, or should the resource just
> return a fragment?
>
> Best regards
> Bastian
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Powered by
FUDForum. Page generated in 0.04411 seconds