[Project Import] DashboardWizard imports every selected element
The
org.fortiss.af3.exploration.ui.perspective.dashboard.projectwizard.DashboardWizard
adds every selected element to the map of selectedElement
which are
then added to the inital step of the DSE.
How to reproduce
- Import the attached file project into af3,
- Switch to the DSE view,
- Open the
DashboardWizard
via the Select AF3 Project button, - Set a breakpoint in the
org.fortiss.af3.exploration.ui.perspective.dashboard.projectwizard.DashboardWizard.performFinish()
method, - Choose the second component architecture in the list of component architectures,
- Choose the rest of the required artifacts,
- Observe that there are two component architectures stored in the
selectedElements
once the DashboardWizard is finished
Expected behavior
Only the element selected last within each page should be added to the
selectedElements
, resulting in a map of selected elements with at most
one entry per type.
(from redmine: issue id 3788, created on 2019-07-31, closed on 2019-08-13)
- Uploads:
- ImportTest.af3_23 Minimal AF3 project for testing