Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius web representationId
Sirius web representationId [message #1853480] Mon, 04 July 2022 14:01 Go to next message
Michael C is currently offline Michael CFriend
Messages: 53
Registered: April 2019

I'm trying to follow the recent example from EclipseCon with the creation of a new type of representation.

I'm not sure how to set the id of the created representation.
After creating it, I have this message :
o.e.s.c.c.e.EditingContextEventProcessor : The representation with the id xxxx does not exist

I tried to set the id with createRepresentationInput.getId().toString() but it seems that theEditingContextEventProcessor is registering a different id.

[Updated on: Mon, 04 July 2022 14:02]

Report message to a moderator

Re: Sirius web representationId [message #1853553 is a reply to message #1853480] Thu, 07 July 2022 14:55 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 704
Registered: July 2009
Senior Member
It's up to each representation implementation to create the id of a new instance.
For example for diagrams it is determined here. It's a random UUID for a newly created diagram, and if its a new version/refreshed state of a previously existing diagram we reuse that.

The id associated with CreateRepresentationInput.getId() is the id of the input event itself. It is only useful as a correlation id between an input event and the payload(s) returned to the frontend.

Pierre-Charles David - Obeo

Need training or professional services for Sirius?
Previous Topic:Sirius Web Subscription
Next Topic:Cannot apply "Label Foreground Color" to not "Enabled" widgets?
Goto Forum:

Current Time: Wed Jun 19 23:29:03 GMT 2024

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

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

Back to the top