Skip to main content



      Home
Home » Modeling » Graphiti » The strange case of the eProxy EObject as a Business Object
The strange case of the eProxy EObject as a Business Object [message #840817] Tue, 10 April 2012 10:46 Go to next message
Eclipse UserFriend
Hi again,

I have a mystery I'm hoping someone can help me with...

In most of the Graphiti code, my business objects are resolving to the actual EMF model objects from my SCA model. And all is hunky dory.

But in some places, I'm getting this:
 (org.eclipse.emf.ecore.impl.EObjectImpl) org.eclipse.emf.ecore.impl.EObjectImpl@87fb3d (eProxyURI: platform:/resource/scatest/helpdesk/switchyard.xml#//@switchyard/@composite)


Which is maddening. Obviously this is a path in the XML file to a particular node. But I'm not assigning anything to do with an eProxyURI so far as I know to these shape elements in the diagram.

Is there a way to translate these back to actual model objects? Or why am I getting them?

It's a bit crazy to me. Or maybe it's me that's crazy...

Thanks in advance
--Fitz
Re: The strange case of the eProxy EObject as a Business Object [message #840829 is a reply to message #840817] Tue, 10 April 2012 11:00 Go to previous messageGo to next message
Eclipse UserFriend
Brian,

Proxies are generally resolved as you access them so you'll only
generally see them if the proxy can't be resolved for some reason, i.e.,
if the resource fails to load (look for the resource with that URI in
the resource set and see if its getErrors() contains reasons for why
it's fail, or, if that resource is there and loaded properly, does it
contain an object at this path?


On 10/04/2012 4:47 PM, Brian Fitzpatrick wrote:
> Hi again,
>
> I have a mystery I'm hoping someone can help me with...
> In most of the Graphiti code, my business objects are resolving to the
> actual EMF model objects from my SCA model. And all is hunky dory.
>
> But in some places, I'm getting this:
>
> (org.eclipse.emf.ecore.impl.EObjectImpl)
> org.eclipse.emf.ecore.impl.EObjectImpl@87fb3d (eProxyURI:
> platform:/resource/scatest/helpdesk/switchyard.xml#//@switchyard/@composite)
>
>
> Which is maddening. Obviously this is a path in the XML file to a
> particular node. But I'm not assigning anything to do with an
> eProxyURI so far as I know to these shape elements in the diagram.
> Is there a way to translate these back to actual model objects? Or why
> am I getting them?
>
> It's a bit crazy to me. Or maybe it's me that's crazy...
>
> Thanks in advance
> --Fitz
Re: The strange case of the eProxy EObject as a Business Object [message #840842 is a reply to message #840829] Tue, 10 April 2012 11:21 Go to previous message
Eclipse UserFriend
That's a good point. The diagram at this point doesn't have an attachment to the source file - that's a different issue. But now at least I get why that's happening.

Thanks Ed!
Previous Topic:Differents editors with the same diagram
Next Topic:using platformGraphicsAlgorithm
Goto Forum:
  


Current Time: Tue Jul 22 18:46:30 EDT 2025

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

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

Back to the top