Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 429674

Summary: Application Model Editor moves only single element in case multiple elements are selected
Product: [Eclipse Project] e4 Reporter: Dmitry Spiridenok <d.spiridenok>
Component: ToolsAssignee: Marco Descher <marco>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, marco
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Dmitry Spiridenok CLA 2014-03-05 09:55:34 EST
When several elements are selected in the Application Model Editor (Application.e4xmi editor) and dragged&dropped at another location, only 1 element is actually moved.

How to reproduce.
Create several elements application elements, for example (only relevant part is shown):
- TrimBars
    - Window Trim 
        - Toolbar 
            - ToolControl
            - ToolControl
            - ToolControl

Now select all 3 tool controls and move them one level up.

Expected result:
- TrimBars
    - Window Trim 
        - Toolbar 
        - ToolControl
        - ToolControl
        - ToolControl

Actual result:
- TrimBars
    - Window Trim 
        - Toolbar 
            - ToolControl
            - ToolControl
        - ToolControl


Please either fix multi-items drag&drop or disable multiple selection.
Comment 1 Lars Vogel CLA 2014-03-07 15:04:48 EST
We added multiple selections to allow that you can extract several model elements, I think the right fix is to support multi-items DND. 

Patches are welcome.
Comment 2 Marco Descher CLA 2014-07-16 16:40:09 EDT
Hy Lars, mind for a second opinion? https://git.eclipse.org/r/#/c/30004/

thanks