comparison org.eclipse.jface.text/src/org/eclipse/jface/text/source/LineChangeHover.d @ 16:dbfb303e8fb0

first complete successful compile (win-only)
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Mar 2009 08:56:47 +0100
parents bc29606a740c
children
comparison
equal deleted inserted replaced
15:c4b1a29263fc 16:dbfb303e8fb0
118 protected String formatSource(String content) { 118 protected String formatSource(String content) {
119 if (content !is null) { 119 if (content !is null) {
120 StringBuffer sb= new StringBuffer(content); 120 StringBuffer sb= new StringBuffer(content);
121 final String tabReplacement= getTabReplacement(); 121 final String tabReplacement= getTabReplacement();
122 for (int pos= 0; pos < sb.length(); pos++) { 122 for (int pos= 0; pos < sb.length(); pos++) {
123 if (sb.slice()[pos] is '\t'){ 123 if (sb.charAt(pos) is '\t')
124 sb.select( pos, pos + 1); 124 sb.replace(pos, pos + 1, tabReplacement);
125 sb.replace(tabReplacement);
126 }
127 } 125 }
128 return sb.toString(); 126 return sb.toString();
129 } 127 }
130 return content; 128 return content;
131 } 129 }