Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321138 - SingleLineTerminalsStrategy does not overwrite selection, if right-Terminal is entered
Summary: SingleLineTerminalsStrategy does not overwrite selection, if right-Terminal i...
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: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 11:16 EDT by Benjamin Schwertfeger CLA
Modified: 2017-09-19 17:13 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: helios+


Attachments
Patch to obtain the given length but still place the curser between both terminals (904 bytes, patch)
2010-07-28 11:16 EDT, Benjamin Schwertfeger CLA
no flags Details | Diff

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