Bug 475389 - Simpler API for selecting Viewpoints
Summary: Simpler API for selecting Viewpoints
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-08-19 10:18 EDT by Max Schettler CLA
Modified: 2015-08-21 04:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Schettler CLA 2015-08-19 10:18:33 EDT
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.
Comment 1 Florian Barbin CLA 2015-08-21 04:08:39 EDT
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.