Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » EMF Cross Reference : Resolve eProxy ?(How resolve Ecore cross reference of Metamodel in Dataset)
EMF Cross Reference : Resolve eProxy ? [message #1048201] Wed, 24 April 2013 06:55 Go to next message
Gabriel Pascual is currently offline Gabriel PascualFriend
Messages: 31
Registered: April 2013
Location: Laval, France
Member
I have a Ecore with a cross reference to an other Ecore. I use ODA Driver with OCL request to access datas of Ecore instance.

I can't access to Ecore EClass of a cross reference. When my OCL request must return a referenced type, I can't specify result type because other Ecore types didn't appear in choices dialog.

Other problem is that returned Java Object is an EMF Proxy and I can't use it without resolve it before.

How can I resolve cross Reference in DataSet ?


Software Development Engineer
Re: EMF Cross Reference : Resolve eProxy ? [message #1048521 is a reply to message #1048201] Wed, 24 April 2013 15:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Gabriel,

The general cause of proxies failing to resolve is not loading the
initial resource with an absolute URI, e.g., if it's from the file
system, you should use something line file:/c:/path/file.xtension.


On 24/04/2013 2:49 PM, Gabriel Pascual wrote:
> I have a Ecore with a cross reference to an other Ecore. I use ODA
> Driver with OCL request to access datas of Ecore instance.
> I can't access to Ecore EClass of a cross reference. When my OCL
> request must return a referenced type, I can't specify result type
> because other Ecore types didn't appear in choices dialog.
>
> Other problem is that returned Java Object is an EMF Proxy and I can't
> use it without resolve it before.
>
> How can I resolve cross Reference in DataSet ?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF Cross Reference : Resolve eProxy ? [message #1049916 is a reply to message #1048521] Fri, 26 April 2013 12:54 Go to previous message
Gabriel Pascual is currently offline Gabriel PascualFriend
Messages: 31
Registered: April 2013
Location: Laval, France
Member
Thank's Ed,

Indeed to solve this problem, I changed resource loading. Your answer confirms the good practices to load a resource.


Software Development Engineer
Previous Topic:Connection Closes for SQL Server 2008 R2
Next Topic:NPE in birt 4.2.2
Goto Forum:
  


Current Time: Wed Apr 24 17:13:39 GMT 2024

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

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

Back to the top