Bug 38821 - Ant editor: indenting size
Summary: Ant editor: indenting size
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 41677 49293 51392 (view as bug list)
Depends on: 40255
Blocks:
  Show dependency tree
 
Reported: 2003-06-12 02:39 EDT by Gabriele Garuglieri CLA
Modified: 2004-05-11 11:05 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriele Garuglieri CLA 2003-06-12 02:39:28 EDT
Need the possibility to customize the indenting size to something different from
the default 4 positions and being able to choose tabs or spaces.
Thanks.
Comment 1 Darin Swanson CLA 2003-08-19 11:00:51 EDT
*** Bug 41677 has been marked as a duplicate of this bug. ***
Comment 2 Darin Swanson CLA 2003-12-23 14:02:21 EST
*** Bug 49293 has been marked as a duplicate of this bug. ***
Comment 3 Darin Swanson CLA 2004-02-10 17:48:30 EST
*** Bug 51392 has been marked as a duplicate of this bug. ***
Comment 4 Darin Swanson CLA 2004-02-17 14:01:18 EST
Added support for the displayed tab width and for inserting spaces for tabs 
when typing.
The formatter (bug 52076 and bug 40255) will handle the rest.


Changes to AntEditorSourceViewerConfiguration, AntEditor, 
AntEditorPreferenceConstants, AntEditorPreferencePage and 
AntPreferencesMessages.
Comment 5 Darin Swanson CLA 2004-02-17 14:01:47 EST
Please verify Luc.
Comment 6 Luc Bourlier CLA 2004-02-18 19:01:38 EST
'insert spaces for tabs when typing' doesn't work well when the file already
contains tabs.

If you have a line with 4 tabs, and the option 'insert spaces for tabs when
typing' set. Typing a tab will add 3 spaces after the first tab, 2 spaces after
the second tab, 1 space after the third tab, 4 spaces after the fourth tab.
I think that in this case, 4 spaces should be always added.

I think the problem is that you should compute the number of spaces you have to
add from the previous tab.
Comment 7 Darin Swanson CLA 2004-03-22 11:29:18 EST
More in M9
Comment 8 Darin Swanson CLA 2004-05-05 12:54:06 EDT
Luc I cannot reproduce your problem.
Can you please verify that this works or if I am mis-interpreting the test 
case?
Comment 9 Darin Swanson CLA 2004-05-05 12:54:38 EDT
Please verify.
Comment 10 Luc Bourlier CLA 2004-05-11 10:59:59 EDT
Verified.
Please update the build notes, Darin S.
Comment 11 Darin Swanson CLA 2004-05-11 11:05:17 EDT
Thanks. Build notes updated.