Skip to main content



      Home
Home » Eclipse Projects » Sirius » setName on a DRepresentation programmatically
setName on a DRepresentation programmatically [message #1842923] Tue, 06 July 2021 08:35 Go to next message
Eclipse UserFriend
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 04:05 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problem with BorderNode drag and drop
Next Topic:Java Service does not get invoked?
Goto Forum:
  


Current Time: Sat Jul 05 09:15:29 EDT 2025

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

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

Back to the top