Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321161 - Reimplement Xtext Autoedit-Strategies
Summary: Reimplement Xtext Autoedit-Strategies
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 323817
Blocks:
  Show dependency tree
 
Reported: 2010-07-28 13:59 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-19 16:30 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

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