Community
Participate
Working Groups
DRepresentationDescriptorQuery delegates the computation and storage of the validity of a DRepresentationDescriptor to an adapter. However, when undoing the deletion of a representation, this adapter was triggered too early. At this point the DRepresentationDescriptor was not only transient but was not yet reattached to the resource. This caused a regression in Capella where the label appears grayed. In Sirius, the issue was already there (In Capella there is a LabelProvider that refreshes afterward). Step to reproduce: - Open a modeling project - Open the aird editor - Remove an existing representation - Undo -> The representation should not appear in gray
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/179680
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/179681
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/179680 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=262d3aca36caa96876158bcd59001e6387485bae
Gerrit change https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/179681 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f4c2c6304df8f0ca74f42ea5a83e5b5820f895db
This fix is good enough for Capella because it has a specific label provider that refreshes the project. However, there is still some work needed for a complete fix on Sirius and it is identified in https://bugs.eclipse.org/bugs/show_bug.cgi?id=573209. There is no validation required here, it will be done with a Capella project in a different issue. Ask me if you need more information.
Available in Sirius 6.5.0, see https://projects.eclipse.org/projects/modeling.sirius/releases/6.5.0 for details.
validated with ODCE 11.5 Nevertheless the validation scenario is : - Open a modeling project - Open the aird editor - Remove an existing representation - Undo - Double click on the representation -> The representation is opened Actually after the undo, the representation appear in grey but the main fix is that the representation can be opened after the undo Comment 5, indicates the other bugzilla that has been opened for this remaining issue