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

Bug 321161

Summary: Reimplement Xtext Autoedit-Strategies
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: henrik.lindberg, sven.efftinge
Version: 1.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: M2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on: 323817    
Bug Blocks:    

Description Sebastian Zarnekow CLA 2010-07-28 13:59:29 EDT
They are currently based on the IAutoEditStrategy interface which allows to modify a DocumentCommand. Unfortunately it hides some important details such as the origin of the command, e.g. pasting a '(' from the clipboard should never insert a closing ')' while typing a '(' should.

I'm afraid that's the reason why PairedBraceInsertion is usually implemented based on a VerifyKeyListener.
Comment 1 Sebastian Zarnekow CLA 2010-08-25 13:37:35 EDT
Preliminary scheduled for M2 as we want to have a look at AutoEdit in this milestone.
Comment 2 Sven Efftinge CLA 2010-09-02 08:57:19 EDT
Removed from the M2 schedule. Is this really an issue? 
Do people copy and paste single terminals or are there other more interesting scenarios?
Comment 3 Henrik Lindberg CLA 2010-09-02 10:29:18 EDT
(In reply to comment #2)
> Do people copy and paste single terminals or are there other more interesting
> scenarios?

They do for 'odd characters' like « » (guillemots) when they can't figure out how to type them :)
Comment 4 Sven Efftinge CLA 2010-09-02 10:56:00 EDT
people who do that regularly deserve the extra pain :-)
Comment 5 Sven Efftinge CLA 2010-09-03 13:08:24 EDT
EditingStrategies based on AbstractEditStrategy won't do anything on paste.
Comment 6 Karsten Thoms CLA 2017-09-19 16:30:23 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.