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

Bug 398991

Summary: Support for linked editing mode with multiple positions
Product: [ECD] Orion Reporter: Andrew Eisenberg <andrew.eisenberg>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mamacdon, Silenio_Quarti
Version: 1.0   
Target Milestone: 3.0 M1   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Andrew Eisenberg CLA 2013-01-24 12:01:19 EST
Currently, the orion editor supports a restricted linked editing mode.  This mode allows you to tab through positions and edit each position separately.

However, it does not all you to edit multiple positions at the same time as is the case in the Eclipse editor's linked editing mode.

Supporting editing of multiple positions at once is a requirement for things like inline renaming and complex templates.

To implement this feature, it is *not* necessary to support true multi-selection or multi-editing.  We can use editor events to edit multiple locations at once.

Getting the undo stack to properly handle linked editing is essential.

The support for linked editing is implemented in editorFeatures.js towards the end of the file.
Comment 1 Silenio Quarti CLA 2013-04-05 17:38:00 EDT
Added support for:
- editing multiple locations
- annotations to show the current select group and other groups.
- fixed the undo stack by adding support to a attach custom data to compound changes.

Please try the latest and let us know if you find issues.  Still need to fix bug#405046, but it should affect your refactoring work.

Fixed

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=57f43f0168dde32223b02bd182b46330aa4ba7ed