comparison dwtx/text/edits/MoveTargetEdit.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
44 /** 44 /**
45 * Constructs a new move target edit 45 * Constructs a new move target edit
46 * 46 *
47 * @param offset the edit's offset 47 * @param offset the edit's offset
48 */ 48 */
49 public MoveTargetEdit(int offset) { 49 public this(int offset) {
50 super(offset, 0); 50 super(offset, 0);
51 } 51 }
52 52
53 /** 53 /**
54 * Constructs an new move target edit 54 * Constructs an new move target edit
55 * 55 *
56 * @param offset the edit's offset 56 * @param offset the edit's offset
57 * @param source the corresponding source edit 57 * @param source the corresponding source edit
58 */ 58 */
59 public MoveTargetEdit(int offset, MoveSourceEdit source) { 59 public this(int offset, MoveSourceEdit source) {
60 this(offset); 60 this(offset);
61 setSourceEdit(source); 61 setSourceEdit(source);
62 } 62 }
63 63
64 /* 64 /*
65 * Copy constructor 65 * Copy constructor
66 */ 66 */
67 private MoveTargetEdit(MoveTargetEdit other) { 67 private this(MoveTargetEdit other) {
68 super(other); 68 super(other);
69 } 69 }
70 70
71 /** 71 /**
72 * Returns the associated source edit or <code>null</code> 72 * Returns the associated source edit or <code>null</code>
73 * if no source edit is associated yet. 73 * if no source edit is associated yet.
74 * 74 *
75 * @return the source edit or <code>null</code> 75 * @return the source edit or <code>null</code>
76 */ 76 */
77 public MoveSourceEdit getSourceEdit() { 77 public this getSourceEdit() {
78 return fSource; 78 return fSource;
79 } 79 }
80 80
81 /** 81 /**
82 * Sets the source edit. 82 * Sets the source edit.