Mercurial > projects > dwt-addons
diff dwtx/jface/text/GapTextStore.d @ 156:a9566845f1cb
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 25 Aug 2008 19:03:46 +0200 |
parents | 75302ef3f92f |
children | 1a5b8f8129df |
line wrap: on
line diff
--- a/dwtx/jface/text/GapTextStore.d Mon Aug 25 00:45:19 2008 +0200 +++ b/dwtx/jface/text/GapTextStore.d Mon Aug 25 19:03:46 2008 +0200 @@ -178,7 +178,7 @@ * <p> * This class is not intended to be subclassed. * </p> - * + * * @see CopyOnWriteTextStore for a copy-on-write text store wrapper * @noextend This class is not intended to be subclassed by clients. */ @@ -196,7 +196,7 @@ /** * The multiplier to compute the array size from the content length * (1 <= fSizeMultiplier <= 2). - * + * * @since 3.3 */ private const float fSizeMultiplier; @@ -216,7 +216,7 @@ /** * Creates a new empty text store using the specified low and high watermarks. - * + * * @param lowWatermark unused - at the lower bound, the array is only resized when the content * does not fit * @param highWatermark if the gap is ever larger than this, it will automatically be shrunken @@ -239,11 +239,11 @@ */ this(highWatermark / 2, highWatermark / 2, 0f); } - + /** * Equivalent to * {@linkplain GapTextStore#GapTextStore(int, int, float) new GapTextStore(256, 4096, 0.1f)}. - * + * * @since 3.3 */ public this() { @@ -268,7 +268,7 @@ * documents. Use <code>maxSize</code> to avoid a huge gap being allocated for large * documents. * </p> - * + * * @param minSize the minimum gap size to allocate (>= 0; use 0 for no minimum) * @param maxSize the maximum gap size to allocate (>= minSize; use * {@link Integer#MAX_VALUE} for no maximum) @@ -350,7 +350,7 @@ * <code>offset + remove</code> behind the gap. The gap size is kept between 0 and * {@link #fThreshold}, leading to re-allocation if needed. The content between * <code>offset</code> and <code>offset + add</code> is undefined after this operation. - * + * * @param offset the offset at which a change happens * @param remove the number of character which are removed or overwritten at <code>offset</code> * @param add the number of character which are inserted or overwriting at <code>offset</code> @@ -374,7 +374,7 @@ /** * Moves the gap to <code>newGapStart</code>. - * + * * @param offset the change offset * @param remove the number of removed / overwritten characters * @param oldGapSize the old gap size @@ -406,7 +406,7 @@ /** * Reallocates a new array and copies the data from the previous one. - * + * * @param offset the change offset * @param remove the number of removed / overwritten characters * @param oldGapSize the old gap size @@ -415,7 +415,7 @@ * @return the new gap end * @since 3.3 */ - private int reallocate(int offset, int remove, final int oldGapSize, int newGapSize, final int newGapStart) { + private int reallocate(int offset, int remove, int oldGapSize, int newGapSize, int newGapStart) { // the new content length (without any gap) final int newLength= fContent.length - newGapSize; // the new array size based on the gap factor @@ -476,7 +476,7 @@ /** * Allocates a new <code>char[size]</code>. - * + * * @param size the length of the new array. * @return a newly allocated char array * @since 3.3 @@ -497,7 +497,7 @@ /** * Returns the gap size. - * + * * @return the gap size * @since 3.3 */