Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Papyrus/Neon Work Description/NewFeature/Papyrus Viewpoint Switch

< Papyrus‎ | Neon Work Description
Revision as of 01:53, 12 December 2015 by Melaasar.gmail.com (Talk | contribs) (Proposal)

Papyrus Viewpoint Switch

Overview

Provide appropriate UI that will let user switch seamlessly between viewpoints.

Requirement

Index Description
REQ_001 The user must be able to switch between viewpoint while editing models with limited UI actions.
REQ_002 The user must be warned when opening a model in a different viewpoint than the one it has been edited in and asked to switch to appropriate viewpoint if needed
REQ_003 The situation where the required viewpoint to edit a model is not available in the setup must be handled
REQ_004 The situation where multiple models are edited side by side but edited through different viewpoints must be handled

Proposal

1. Change the Papyrus viewpoint configuration preferences to allow selecting multiple viewpoint configurations. The Default configuration and the (viewpoint extension point) deployed configurations will be automatically added and initially selected (for discoverability). Such configurations cannot be removed but can be unselected (except for Default). In addition, local configurations can be added, edited, removed and (un)selected.

2. Local configurations can be added using different access schemes (file system, workspace, platform).

3. A 'Viewpoints Selection...' action will be contributed in multiple places in the workspace.

  a. As a toolbar action
  b. As a menubar action under the Papyrus menu
  c. As a context menu action on the Papyrus model root.

4. The 'Viewpoints Selection...' action will show a dialog to switch the viewpoint of the model. The dialog shows a list of available stakeholders (in a drop-down menu) and their viewpoints (in a list box) that are available from the selected viewpoint configurations in the preferences (a button to navigate to the preferences will be provided). It will also show the currently selected viewpoint. A user can select a new viewpoint from the list by choosing the 'Select' button. When this happens, the new viewpoint becomes active and its relevant changes take place in the model's editor and the relevant views in the workspace.

5. The Papyrus DI (.di) model will have a new optional reference to a viewpoint configuration. This optional reference can be initialized from an added page in the New Papyrus model wizard. It can also be changed by the 'Viewpoints Selection..." action in point 3 above. If the reference is unset, the model's viewpoint is assumed to be Default.

6. When a Papyrus model editor receives focus, its model's viewpoint becomes active resulting in relevant changes to the editor and to the relevant views in the workbench.

Back to the top