Bug 441405 - Validate action from model explorer
Summary: Validate action from model explorer
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-08-08 04:32 EDT by Melanie Bats CLA
Modified: 2014-08-08 09:37 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 Melanie Bats CLA 2014-08-08 04:32:40 EDT
Sirius provides on diagram the "Validate diagram" action. It could be great to be able to launch the same kind of validation from a pop menu in the model explorer.
Comment 1 Pierre-Charles David CLA 2014-08-08 04:41:18 EDT
Note that "Validate diagram" applies (in addition to standard EMF validation) validation rules which are specific to the representation's viewpoint. If the action is launched from the model explorer we are in the general context of the session, not on a representation, so this would either only launch the base EMF Validation stuff, or *all* validation rules from all Viewpoints currently enabled in the session.

Also, we do not want to hard-code the contribution of such an action inside the Sirius UI, as does so would impose it on all users in all contexts, with no possibility to remove it. It would be better to provide a simple way for specific projects to add such an action in a way that would make it available only in their context.
Comment 2 Melanie Bats CLA 2014-08-08 04:55:34 EDT
I would like to see from the model explorer two different validate actions :
* if a semantic element is selected it would launch the standard EMF validation
* if a representation is selected  it would launch the Sirius validate diagram action
Comment 3 Pierre-Charles David CLA 2014-08-08 09:37:11 EDT
(In reply to Melanie Bats from comment #2)
> I would like to see from the model explorer two different validate actions :
> * if a semantic element is selected it would launch the standard EMF
> validation
> * if a representation is selected  it would launch the Sirius validate
> diagram action

I agree this looks better. I'm still a little reluctant to add new UI elements to the Sirius UI that will be imposed on all users with no easy opt-out path, but this is a more general subject that deserves more thought.