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

Bug 77815

Summary: [api][typing] TextViewer tab key handling
Product: [Eclipse Project] Platform Reporter: d <dsmall>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description d CLA 2004-11-04 06:33:52 EST
( Please move if this isn't the right place for jface.text bugs )

Was suprised to find that over riding getIndentPrefixes and 
getDefaultIndentPrefixes in my SourceViewerConfiguration didn't affect how
processing of the tab key was handled.  ( That is when typed when there isn't
a selection. )

Was disappointed when I saw that the ant editor and java editor had to duplicate 
the same bunch of code ( 60 lines? ) just to make it so that tab key would 
insert spaces.  

Perhaps TextViewer ( or SourceViewer ) should allow configuration of this?
( That is whether tab key inserts tab char or N spaces ... )
Comment 1 Dani Megert CLA 2006-08-29 07:10:20 EDT

*** This bug has been marked as a duplicate of 82296 ***