Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Cross-reference type?
icon10.gif  Cross-reference type? [message #1750947] Mon, 02 January 2017 15:13 Go to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
Hi, I'm newbie,

I have a model (called M) (Aadl system instance) that refers to elements of another model (R).

There are 2 forms of cross references in my models:
- The first one likes "R#/0/@ownedPropertyType.16/@ownedLiteral.3"
- The second one likes"R#AADL_Project.Actual_Processor_Binding"

Eclipse can find element in first form but cannot find element in second.
I don't understand so much the mechanism of cross-reference.

Thanks for any idea and explication!!!

[Updated on: Mon, 02 January 2017 15:20]

Report message to a moderator

Re: Cross-reference type? [message #1750977 is a reply to message #1750947] Tue, 03 January 2017 10:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31923
Registered: July 2009
Senior Member
The first forum uses EMF's fragment path mechanism. The resource R will be loaded (strange there is no file extension), and from the root of that resource, the first object of Resource.getContents() is selected (the fact I see a /0 suggests the resource contains more than one root object), and from that object x, x.getOwnedPropertyTypes().get(16) is called, and so on to reach the right leaf object. The second form is an ID-based reference. The reference object apparently has an ID, and for the resource R, R.getEObject("AADL_Project.Actual_Processor_Binding") should return the object with that ID. The resource must have contained an object with that ID at the point in time when the reference was serialized.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Cross-reference type? [message #1750978 is a reply to message #1750977] Tue, 03 January 2017 10:37 Go to previous messageGo to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
Thank you very much!!!

Re: Cross-reference type? [message #1750979 is a reply to message #1750977] Tue, 03 January 2017 10:38 Go to previous message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
Thank you very much!!!

Previous Topic:Customize XML reading/writing with ExtendedMetaData
Next Topic:Customize refresh of the editor based on EMF.Edit
Goto Forum:
  


Current Time: Fri Jun 25 08:18:42 GMT 2021

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

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

Back to the top