Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » setName on a DRepresentation programmatically
setName on a DRepresentation programmatically [message #1842923] Tue, 06 July 2021 12:35 Go to next message
Benoit Ries is currently offline Benoit RiesFriend
Messages: 86
Registered: May 2013
Member
Hi,

I am updating our application Sirius-related code to the latest v6.5.1, and some pieces of code do not compile anymore...

In particular, I used to set the name of a representation using setName from DRepresentation, but this method is not present anymore in the API.

Could you give me hints on how to update my legacy code ?

I have seen that setting the name is now done at the level of DRepresentationDescriptor but how do I get this descriptor given as input a DRepresentation ?

Many thanks in advance,
BenoƮt
Re: setName on a DRepresentation programmatically [message #1842940 is a reply to message #1842923] Wed, 07 July 2021 08:05 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 570
Registered: May 2011
Senior Member
Hello,

To access a DRepresentationDescriptor from a DRepresentation you should use the query org.eclipse.sirius.business.api.query.DRepresentationQuery.getRepresentationDescriptor(). You will indeed be able to change the name.

Best regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Problem with BorderNode drag and drop
Next Topic:Java Service does not get invoked?
Goto Forum:
  


Current Time: Fri Dec 09 07:25:06 GMT 2022

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

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

Back to the top