Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331211 - MoveCommand doesn't handle non-unique features
Summary: MoveCommand doesn't handle non-unique features
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: 2.7.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-26 09:57 EST by Nicolas Bros CLA
Modified: 2011-06-02 11:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.