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 22278 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.css.core.patch
org.eclipse.wst.css.core.patch (text/plain), 4.30 KB, created by
Amy Wu
on 2005-06-02 17:37:54 EDT
(
hide
)
Description:
org.eclipse.wst.css.core.patch
Filename:
MIME Type:
Creator:
Amy Wu
Created:
2005-06-02 17:37:54 EDT
Size:
4.30 KB
patch
obsolete
>Index: src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java >=================================================================== >RCS file: /home/webtools/wst/components/css/plugins/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java,v >retrieving revision 1.7 >diff -u -r1.7 AbstractCSSSourceFormatter.java >--- src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java 25 May 2005 21:11:06 -0000 1.7 >+++ src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java 2 Jun 2005 21:22:48 -0000 >@@ -938,21 +938,21 @@ > } > > private String getIndentString() { >- String indent = ""; //$NON-NLS-1$ >+ StringBuffer indent = new StringBuffer(); > > Preferences preferences = CSSCorePlugin.getDefault().getPluginPreferences(); > if (preferences != null) { >- String indentChar = " "; //$NON-NLS-1$ >+ char indentChar = ' '; > String indentCharPref = preferences.getString(CSSCorePreferenceNames.INDENTATION_CHAR); > if (CSSCorePreferenceNames.TAB.equals(indentCharPref)) { >- indentChar = "\t"; //$NON-NLS-1$ >+ indentChar = '\t'; > } > int indentationWidth = preferences.getInt(CSSCorePreferenceNames.INDENTATION_SIZE); > > for (int i = 0; i < indentationWidth; i++) { >- indent += indentChar; >+ indent.append(indentChar); > } > } >- return indent; >+ return indent.toString(); > } > } >\ No newline at end of file >Index: src/org/eclipse/wst/css/core/internal/formatter/StyleDeclItemFormatter.java >=================================================================== >RCS file: /home/webtools/wst/components/css/plugins/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/StyleDeclItemFormatter.java,v >retrieving revision 1.5 >diff -u -r1.5 StyleDeclItemFormatter.java >--- src/org/eclipse/wst/css/core/internal/formatter/StyleDeclItemFormatter.java 25 May 2005 21:11:06 -0000 1.5 >+++ src/org/eclipse/wst/css/core/internal/formatter/StyleDeclItemFormatter.java 2 Jun 2005 21:22:48 -0000 >@@ -379,21 +379,21 @@ > } > > private String getIndentString() { >- String indent = ""; //$NON-NLS-1$ >+ StringBuffer indent = new StringBuffer(); > > Preferences preferences = CSSCorePlugin.getDefault().getPluginPreferences(); > if (preferences != null) { >- String indentChar = " "; //$NON-NLS-1$ >+ char indentChar = ' '; > String indentCharPref = preferences.getString(CSSCorePreferenceNames.INDENTATION_CHAR); > if (CSSCorePreferenceNames.TAB.equals(indentCharPref)) { >- indentChar = "\t"; //$NON-NLS-1$ >+ indentChar = '\t'; > } > int indentationWidth = preferences.getInt(CSSCorePreferenceNames.INDENTATION_SIZE); > > for (int i = 0; i < indentationWidth; i++) { >- indent += indentChar; >+ indent.append(indentChar); > } > } >- return indent; >+ return indent.toString(); > } > } >\ No newline at end of file >Index: src/org/eclipse/wst/css/core/internal/provisional/preferences/CSSPreferenceHelper.java >=================================================================== >RCS file: /home/webtools/wst/components/css/plugins/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/provisional/preferences/CSSPreferenceHelper.java,v >retrieving revision 1.2 >diff -u -r1.2 CSSPreferenceHelper.java >--- src/org/eclipse/wst/css/core/internal/provisional/preferences/CSSPreferenceHelper.java 25 May 2005 21:11:07 -0000 1.2 >+++ src/org/eclipse/wst/css/core/internal/provisional/preferences/CSSPreferenceHelper.java 2 Jun 2005 21:22:48 -0000 >@@ -41,22 +41,22 @@ > * > */ > public String getIndentString() { >- String indent = ""; //$NON-NLS-1$ >+ StringBuffer indent = new StringBuffer(); > > Preferences preferences = getPreferences(); > if (preferences != null) { >- String indentChar = " "; //$NON-NLS-1$ >+ char indentChar = ' '; > String indentCharPref = preferences.getString(CSSCorePreferenceNames.INDENTATION_CHAR); > if (CSSCorePreferenceNames.TAB.equals(indentCharPref)) { >- indentChar = "\t"; //$NON-NLS-1$ >+ indentChar = '\t'; > } > int indentationWidth = preferences.getInt(CSSCorePreferenceNames.INDENTATION_SIZE); > > for (int i = 0; i < indentationWidth; i++) { >- indent += indentChar; >+ indent.append(indentChar); > } > } >- return indent; >+ return 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