Mercurial > projects > dwt-addons
comparison dwtx/text/edits/CopySourceEdit.d @ 130:b56e9be9fe88
ctors to this
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 00:30:47 +0200 |
parents | eb30df5ca28b |
children | c4fb132a086c |
comparison
equal
deleted
inserted
replaced
129:eb30df5ca28b | 130:b56e9be9fe88 |
---|---|
94 * Constructs a new copy source edit. | 94 * Constructs a new copy source edit. |
95 * | 95 * |
96 * @param offset the edit's offset | 96 * @param offset the edit's offset |
97 * @param length the edit's length | 97 * @param length the edit's length |
98 */ | 98 */ |
99 public CopySourceEdit(int offset, int length) { | 99 public this(int offset, int length) { |
100 super(offset, length); | 100 super(offset, length); |
101 } | 101 } |
102 | 102 |
103 /** | 103 /** |
104 * Constructs a new copy source edit. | 104 * Constructs a new copy source edit. |
105 * | 105 * |
106 * @param offset the edit's offset | 106 * @param offset the edit's offset |
107 * @param length the edit's length | 107 * @param length the edit's length |
108 * @param target the edit's target | 108 * @param target the edit's target |
109 */ | 109 */ |
110 public CopySourceEdit(int offset, int length, CopyTargetEdit target) { | 110 public this(int offset, int length, CopyTargetEdit target) { |
111 this(offset, length); | 111 this(offset, length); |
112 setTargetEdit(target); | 112 setTargetEdit(target); |
113 } | 113 } |
114 | 114 |
115 /* | 115 /* |
116 * Copy Constructor | 116 * Copy Constructor |
117 */ | 117 */ |
118 private CopySourceEdit(CopySourceEdit other) { | 118 private this(CopySourceEdit other) { |
119 super(other); | 119 super(other); |
120 if (other.fModifier !is null) | 120 if (other.fModifier !is null) |
121 fModifier= other.fModifier.copy(); | 121 fModifier= other.fModifier.copy(); |
122 } | 122 } |
123 | 123 |