Mercurial > projects > dwt-addons
comparison dwtx/jface/text/revisions/Revision.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 3678e4f1a766 |
children |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
38 * | 38 * |
39 * @since 3.2 | 39 * @since 3.2 |
40 */ | 40 */ |
41 public abstract class Revision { | 41 public abstract class Revision { |
42 /** The original list of change regions, element type: {@link ChangeRegion}. */ | 42 /** The original list of change regions, element type: {@link ChangeRegion}. */ |
43 private const List fChangeRegions= new ArrayList(); | 43 private const List fChangeRegions; |
44 /** | 44 /** |
45 * The cached list of adjusted ranges, element type: {@link RevisionRange}. <code>null</code> | 45 * The cached list of adjusted ranges, element type: {@link RevisionRange}. <code>null</code> |
46 * if the list must be re-computed. Unmodifiable. | 46 * if the list must be re-computed. Unmodifiable. |
47 * | 47 * |
48 * @since 3.3 | 48 * @since 3.3 |
51 | 51 |
52 /** | 52 /** |
53 * Creates a new revision. | 53 * Creates a new revision. |
54 */ | 54 */ |
55 protected this() { | 55 protected this() { |
56 fChangeRegions= new ArrayList(); | |
56 } | 57 } |
57 | 58 |
58 /** | 59 /** |
59 * Adds a line range to this revision. The range must be non-empty and have a legal start line | 60 * Adds a line range to this revision. The range must be non-empty and have a legal start line |
60 * (not -1). | 61 * (not -1). |
149 | 150 |
150 /* | 151 /* |
151 * @see java.lang.Object#toString() | 152 * @see java.lang.Object#toString() |
152 */ | 153 */ |
153 public override String toString() { | 154 public override String toString() { |
154 return "Revision " + getId(); //$NON-NLS-1$ | 155 return "Revision " ~ getId(); //$NON-NLS-1$ |
155 } | 156 } |
156 | 157 |
157 /** | 158 /** |
158 * Returns the display string for the author of this revision. | 159 * Returns the display string for the author of this revision. |
159 * <p> | 160 * <p> |