Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 8236 Details for
Bug 40255
Ant formatter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
minor fix to FormattingPreferences for the sake of tests
patch.txt (text/plain), 1.32 KB, created by
John-Mason P. Shackelford
on 2004-03-01 00:08:58 EST
(
hide
)
Description:
minor fix to FormattingPreferences for the sake of tests
Filename:
MIME Type:
Creator:
John-Mason P. Shackelford
Created:
2004-03-01 00:08:58 EST
Size:
1.32 KB
patch
obsolete
>Index: Ant Editor/org/eclipse/ant/internal/ui/editor/formatter/FormattingPreferences.java >=================================================================== >retrieving revision 1.3 >diff -u -r1.3 FormattingPreferences.java >--- Ant Editor/org/eclipse/ant/internal/ui/editor/formatter/FormattingPreferences.java 24 Feb 2004 04:22:43 -0000 1.3 >+++ Ant Editor/org/eclipse/ant/internal/ui/editor/formatter/FormattingPreferences.java 1 Mar 2004 05:04:58 -0000 >@@ -21,11 +21,11 @@ > > public String getCanonicalIndent() { > String canonicalIndent; >- if (fPrefs.getBoolean(AntEditorPreferenceConstants.FORMATTER_TAB_CHAR)) { >+ if (! useSpacesInsteadOfTabs()) { > canonicalIndent = "\t"; //$NON-NLS-1$ > } else { > String tab = ""; //$NON-NLS-1$ >- for (int i = 0; i < fPrefs.getInt(AntEditorPreferenceConstants.FORMATTER_TAB_SIZE); i++) { >+ for (int i = 0; i < getTabWidth(); i++) { > tab = tab.concat(" "); //$NON-NLS-1$ > } > canonicalIndent = tab; >@@ -60,6 +60,10 @@ > > public int getTabWidth() { > return fPrefs.getInt(AntEditorPreferenceConstants.FORMATTER_TAB_SIZE); >+ } >+ >+ public boolean useSpacesInsteadOfTabs() { >+ return ! fPrefs.getBoolean(AntEditorPreferenceConstants.FORMATTER_TAB_CHAR); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 40255
:
7625
|
7682
|
8117
| 8236 |
8258
|
8595
|
8596