Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:46 Go to next message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
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 15:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: The strange case of the eProxy EObject as a Business Object [message #840842 is a reply to message #840829] Tue, 10 April 2012 15:21 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
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: Thu Apr 25 05:22:16 GMT 2024

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

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

Back to the top