Skip to main content



      Home
Home » Eclipse Projects » Sirius » Get DRepresentationDescriptor for DRepresentation
Get DRepresentationDescriptor for DRepresentation [message #1791000] Thu, 21 June 2018 05:01 Go to next message
Eclipse UserFriend
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 06:54 Go to previous messageGo to next message
Eclipse UserFriend
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 09:05 Go to previous message
Eclipse UserFriend
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: Sun Jul 13 22:31:20 EDT 2025

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

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

Back to the top