Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 Pascual
Messages: 12
Registered: April 2013
Location: Laval, France
Junior 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
ALL4TEC
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 Merks
Messages: 26054
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 ?
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 Pascual
Messages: 12
Registered: April 2013
Location: Laval, France
Junior 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
ALL4TEC
Previous Topic:Connection Closes for SQL Server 2008 R2
Next Topic:NPE in birt 4.2.2
Goto Forum:
  


Current Time: Sat Sep 20 18:03:35 GMT 2014

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

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