Bug 517491 - [aird editor] the wizard "Create new representation" should have error message when selected model element is not compatible
Summary: [aird editor] the wizard "Create new representation" should have error messag...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 5.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-05-31 03:56 EDT by Pierre Guilet CLA
Modified: 2017-08-16 10:49 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Guilet CLA 2017-05-31 03:56:50 EDT
When creating a new representation with the wizard "Create new representation" you are asked to choose a model element target of the new representation and from the type compatible after having chosen a representation description.

To do that you are shown all available models elements. But some elements can have a type not compatible with the representation description used. 

So if you selected one of those no compatible element an error message in the wizard's header should warn the user it is not compatible.
Wanted behavior:

- in an environment with some viewpoints deployed
- Create a new modeling project
- open aird editor
- add an ecore model with one element to have some viewpoints in the representations block of the editor
- open the representation creation wizard by clicking on new
- select a representation description then next.
- select a model element not compatible with the representation description
- there should be an error message telling user type is not compatible