Community
Participate
Working Groups
The 'ViewpointSelection' class provides methods for selecting Viewpoints. However, there is no simple 'selectViewpoint' or 'deselectViewpoint' methods. Instead, one has to use 'applyNewViewpointSelection'. Also, a useful command for this task, the 'ChangeViewpointSelectionCommand' is not element of the API even though it would be very useful.
Thank you for your bug report. We are aware of the limitation of the current Viewpoint selection API, which, for historical reasons, offers several ways to select a viewpoint but no one is completely satisfying. You could also use for instance org.eclipse.sirius.business.api.session.ViewpointSelector but you need to retrieve the Viewpoint instance before. For now, we did no plan this issue to a specific target milestone.