| Summary: | ECPWorkspace.setActiveProject should be called in implementations | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] ECP | Reporter: | Nikolay Kasyanov <corrmage> | ||||||
| Component: | Model Workspace | Assignee: | Maximilian Koegel <mkoegel> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | jhelming | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 0.8.9 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Nikolay Kasyanov
I agree, that is because the EMFECPWorkspace forwards the active project calls. I think it would be sufficient if the EMFECPWorkspace creates the right notifications that the active project has changed. I've tried to add super.setActiveProject to EMFECPWorkspace.setActiveModelElement and to remove overriden getActiveProject, looks good at first glance. could you provide a patch for that? Created attachment 202612 [details]
patch against latest 0.8x maintenance branch on svn
here it is
Created attachment 202616 [details]
added some fix
I see one potential issue: If in future another mapping.remove will be added, it should be guarded with check for active project. So, I see two ways: 1. Use HashMap with overridden remove method (which checks active project). 2. Leave all as for now and provide notification about changing activeProject field without actually changing it. You switched to the 0.9.x branch now, right? I would rather apply this in the GIT, if you do not mind. we haven't decided yet Any news on this? On current (M920) version it seems that I cannot detect active project change at model level at all, because field Workspace.activeProjectSpace which I used for such detection removed. The only way is to fix this bug I think. Point me if I'm wrong. current selection can be used instead, the concept of active project has been a duplicate. |