Skip to main content



      Home
Home » Eclipse Projects » Sirius » Sirius web representationId
Sirius web representationId [message #1853480] Mon, 04 July 2022 10:01 Go to next message
Eclipse UserFriend
Hello,

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 10:02] by Moderator

Re: Sirius web representationId [message #1853553 is a reply to message #1853480] Thu, 07 July 2022 10:55 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Sirius Web Subscription
Next Topic:Cannot apply "Label Foreground Color" to not "Enabled" widgets?
Goto Forum:
  


Current Time: Thu Jul 03 13:52:45 EDT 2025

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

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

Back to the top