Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Get DRepresentationDescriptor for DRepresentation
Get DRepresentationDescriptor for DRepresentation [message #1791000] Thu, 21 June 2018 09:01 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 275
Registered: December 2015
Senior Member
Hi,

How can I get the DRepresentationDescriptor for a given DRepresentation without accidentially resolving any DRepresentation proxies in the model?
Re: Get DRepresentationDescriptor for DRepresentation [message #1791006 is a reply to message #1791000] Thu, 21 June 2018 10:54 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 194
Registered: August 2010
Senior Member
Hi Felix,

The method org.eclipse.sirius.business.api.query.DRepresentationQuery.getRepresentationDescriptor() retrieves the DRepresentationDescriptor by using the crossReferencer. But if the DRepresentation is not resolved, you will have to iterate over the DRepresentationDescriptors (an example here:: org.eclipse.sirius.business.internal.dialect.DialectManagerImpl.getAllRepresentationDescriptors(Session)) and compare the proxy with the org.eclipse.sirius.viewpoint.DRepresentationDescriptor.getRepPath().

Regards,

Florian
Re: Get DRepresentationDescriptor for DRepresentation [message #1791018 is a reply to message #1791006] Thu, 21 June 2018 13:05 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 275
Registered: December 2015
Senior Member
Okay thank you Florian :)

Felix
Previous Topic:All layers are equal (or not?)
Next Topic:Read an Excel Sheet with the Services java Extention
Goto Forum:
  


Current Time: Thu Sep 20 18:22:50 GMT 2018

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

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

Back to the top