Mercurial > projects > dwt-addons
comparison dwtx/jface/text/GapTextStore.d @ 146:75302ef3f92f
final
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:34:04 +0200 |
parents | 51e6e63f930e |
children | a9566845f1cb |
comparison
equal
deleted
inserted
replaced
145:02cd5f1224d3 | 146:75302ef3f92f |
---|---|
185 public class GapTextStore : ITextStore { | 185 public class GapTextStore : ITextStore { |
186 /** | 186 /** |
187 * The minimum gap size allocated when re-allocation occurs. | 187 * The minimum gap size allocated when re-allocation occurs. |
188 * @since 3.3 | 188 * @since 3.3 |
189 */ | 189 */ |
190 private final int fMinGapSize; | 190 private const int fMinGapSize; |
191 /** | 191 /** |
192 * The maximum gap size allocated when re-allocation occurs. | 192 * The maximum gap size allocated when re-allocation occurs. |
193 * @since 3.3 | 193 * @since 3.3 |
194 */ | 194 */ |
195 private final int fMaxGapSize; | 195 private const int fMaxGapSize; |
196 /** | 196 /** |
197 * The multiplier to compute the array size from the content length | 197 * The multiplier to compute the array size from the content length |
198 * (1 <= fSizeMultiplier <= 2). | 198 * (1 <= fSizeMultiplier <= 2). |
199 * | 199 * |
200 * @since 3.3 | 200 * @since 3.3 |
201 */ | 201 */ |
202 private final float fSizeMultiplier; | 202 private const float fSizeMultiplier; |
203 | 203 |
204 /** The store's content */ | 204 /** The store's content */ |
205 private char[] fContent= new char[0]; | 205 private char[] fContent= new char[0]; |
206 /** Starting index of the gap */ | 206 /** Starting index of the gap */ |
207 private int fGapStart= 0; | 207 private int fGapStart= 0; |