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 22287 Details for
Bug 71271
add "insert spaces for tabs" function to sse editors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
org.eclipse.wst.xml.core.patch
org.eclipse.wst.xml.core.patch (text/plain), 3.15 KB, created by
Amy Wu
on 2005-06-02 17:45:05 EDT
(
hide
)
Description:
org.eclipse.wst.xml.core.patch
Filename:
MIME Type:
Creator:
Amy Wu
Created:
2005-06-02 17:45:05 EDT
Size:
3.15 KB
patch
obsolete
>Index: src/org/eclipse/wst/xml/core/internal/provisional/format/FormatProcessorXML.java >=================================================================== >RCS file: /home/webtools/wst/components/xml/plugins/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/provisional/format/FormatProcessorXML.java,v >retrieving revision 1.3 >diff -u -r1.3 FormatProcessorXML.java >--- src/org/eclipse/wst/xml/core/internal/provisional/format/FormatProcessorXML.java 25 May 2005 21:11:06 -0000 1.3 >+++ src/org/eclipse/wst/xml/core/internal/provisional/format/FormatProcessorXML.java 2 Jun 2005 21:25:47 -0000 >@@ -38,18 +38,18 @@ > ((IStructuredFormatPreferencesXML) fFormatPreferences).setSplitMultiAttrs(preferences.getBoolean(XMLCorePreferenceNames.SPLIT_MULTI_ATTRS)); > fFormatPreferences.setClearAllBlankLines(preferences.getBoolean(XMLCorePreferenceNames.CLEAR_ALL_BLANK_LINES)); > >- String indentChar = " "; //$NON-NLS-1$ >+ char indentChar = ' '; > String indentCharPref = preferences.getString(XMLCorePreferenceNames.INDENTATION_CHAR); > if (XMLCorePreferenceNames.TAB.equals(indentCharPref)) { >- indentChar = "\t"; //$NON-NLS-1$ >+ indentChar = '\t'; > } > int indentationWidth = preferences.getInt(XMLCorePreferenceNames.INDENTATION_SIZE); > >- String indent = ""; //$NON-NLS-1$ >+ StringBuffer indent = new StringBuffer(); > for (int i = 0; i < indentationWidth; i++) { >- indent += indentChar; >+ indent.append(indentChar); > } >- fFormatPreferences.setIndent(indent); >+ fFormatPreferences.setIndent(indent.toString()); > } > } > >Index: src/org/eclipse/wst/xml/core/internal/provisional/format/NodeFormatter.java >=================================================================== >RCS file: /home/webtools/wst/components/xml/plugins/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/provisional/format/NodeFormatter.java,v >retrieving revision 1.5 >diff -u -r1.5 NodeFormatter.java >--- src/org/eclipse/wst/xml/core/internal/provisional/format/NodeFormatter.java 25 May 2005 21:11:06 -0000 1.5 >+++ src/org/eclipse/wst/xml/core/internal/provisional/format/NodeFormatter.java 2 Jun 2005 21:25:47 -0000 >@@ -419,18 +419,18 @@ > ((IStructuredFormatPreferencesXML) fFormatPreferences).setSplitMultiAttrs(preferences.getBoolean(XMLCorePreferenceNames.SPLIT_MULTI_ATTRS)); > fFormatPreferences.setClearAllBlankLines(preferences.getBoolean(XMLCorePreferenceNames.CLEAR_ALL_BLANK_LINES)); > >- String indentChar = " "; //$NON-NLS-1$ >+ char indentChar = ' '; > String indentCharPref = preferences.getString(XMLCorePreferenceNames.INDENTATION_CHAR); > if (XMLCorePreferenceNames.TAB.equals(indentCharPref)) { >- indentChar = "\t"; //$NON-NLS-1$ >+ indentChar = '\t'; > } > int indentationWidth = preferences.getInt(XMLCorePreferenceNames.INDENTATION_SIZE); > >- String indent = ""; //$NON-NLS-1$ >+ StringBuffer indent = new StringBuffer(); > for (int i = 0; i < indentationWidth; i++) { >- indent += indentChar; >+ indent.append(indentChar); > } >- fFormatPreferences.setIndent(indent); >+ fFormatPreferences.setIndent(indent.toString()); > } > } >
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 71271
:
22276
|
22277
|
22278
|
22279
|
22281
|
22282
|
22283
|
22284
|
22285
|
22286
| 22287 |
22288
|
22289
|
24931
|
24932
|
24933