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

Bug 331211

Summary: MoveCommand doesn't handle non-unique features
Product: [Modeling] EMF Reporter: Nicolas Bros <nicolas.bros>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2010-11-26 09:57:42 EST
The MoveCommand (org.eclipse.emf.edit.command.MoveCommand) takes a value, and moves the first occurrence of this value.
So, with a non-unique feature, this command cannot be used to move other occurrences of the value.

There is currently a constructor that takes a value and a target index.
There could also be another constructor that takes a source index and a target index.
Comment 1 Ed Merks CLA 2011-05-12 19:10:32 EDT
New constructors that specify source and target index have been added for EMF 2.7.
Comment 2 Ed Merks CLA 2011-06-02 11:40:16 EDT
The fix is available in 3.7RC3 and later.