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

Bug 321138

Summary: SingleLineTerminalsStrategy does not overwrite selection, if right-Terminal is entered
Product: [Modeling] TMF Reporter: Benjamin Schwertfeger <benjamin.schwertfeger>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Target Milestone: SR1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch to obtain the given length but still place the curser between both terminals none

Description Benjamin Schwertfeger CLA 2010-07-28 11:16:39 EDT
Created attachment 175417 [details]
Patch to obtain the given length but still place the curser between both terminals

IS: If you write a grammar with "(" and ")" as terminals, the registered SingleLineTerminalsStrategy prevent from select select some text and overwrite with the right-Terminal "(". The length is always set to 0.

Expected: The selected text should be replaced with the left- and the right terminal.
Comment 1 Sebastian Zarnekow CLA 2010-07-28 15:20:53 EDT
Fixed in HEAD. 

As I did not apply the patch directly, I'ld like you to verify the fix. Thanks.
Comment 2 Benjamin Schwertfeger CLA 2010-07-28 16:28:58 EDT
This solution works also.
Comment 3 Karsten Thoms CLA 2017-09-19 17:02:18 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:13:40 EDT
Closing all bugs that were set to RESOLVED before Neon.0