Bug 517491

Summary: [aird editor] the wizard "Create new representation" should have error message when selected model element is not compatible
Product: [Modeling] Sirius Reporter: Pierre Guilet <pierre.guilet>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: florian.barbin, pierre-charles.david
Version: 5.0.0Keywords: triaged
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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