Bug 439597 - DAnalysisSelectors should be called even when there is only one candidate
Summary: DAnalysisSelectors should be called even when there is only one candidate
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 1.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: 2014-07-15 05:35 EDT by Stéphane Thibaudeau CLA
Modified: 2014-07-21 11:06 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 Stéphane Thibaudeau CLA 2014-07-15 05:35:11 EDT
When converting a project to be a modeling project, all models in this project are automatically added as semantic models.

It would be useful to be able to control which resources should be added.

One way to do so could be to call the DAnalysisSelector every time a resource is added.
Comment 1 Alex Lagarde CLA 2014-07-21 11:06:51 EDT
After dscussion, this issue is more about modifying Sirius Code to:
- delegate the choice of the DAnalysis in which a semantic resource should be added as semantic model even when there is only one candidate
- delegate the choice of the DAnalysis in which a Representation should be created even when there is only one candidate
- accept null return value for both cases, in which case the semantic mode/representation will not be added to any DAnalysis

This task includes ensuring that the "models" reference is correctly handled when there is several active DAnalyses.