comparison dwtx/jface/text/link/LinkedModeUI.d @ 133:7d818bd32d63

Fix ctors to this with gvim regexp
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:29:22 +0200
parents c4fb132a086c
children 51e6e63f930e
comparison
equal deleted inserted replaced
132:77bd3bb3d7b8 133:7d818bd32d63
189 private ITextViewer fTextViewer; 189 private ITextViewer fTextViewer;
190 190
191 /** 191 /**
192 * @param viewer the viewer 192 * @param viewer the viewer
193 */ 193 */
194 public EmptyTarget(ITextViewer viewer) { 194 public this(ITextViewer viewer) {
195 Assert.isNotNull(viewer); 195 Assert.isNotNull(viewer);
196 fTextViewer= viewer; 196 fTextViewer= viewer;
197 } 197 }
198 198
199 /* 199 /*
258 * Creates a new instance. 258 * Creates a new instance.
259 * 259 *
260 * @param flags the exit flags 260 * @param flags the exit flags
261 * @param doit the doit flag for the verify event 261 * @param doit the doit flag for the verify event
262 */ 262 */
263 public ExitFlags(int flags, bool doit) { 263 public this(int flags, bool doit) {
264 this.flags= flags; 264 this.flags= flags;
265 this.doit= doit; 265 this.doit= doit;
266 } 266 }
267 } 267 }
268 268
653 * 653 *
654 * @param model the linked mode model 654 * @param model the linked mode model
655 * @param targets the non-empty list of targets upon which the linked mode 655 * @param targets the non-empty list of targets upon which the linked mode
656 * UI should act 656 * UI should act
657 */ 657 */
658 public LinkedModeUI(LinkedModeModel model, LinkedModeUITarget[] targets) { 658 public this(LinkedModeModel model, LinkedModeUITarget[] targets) {
659 constructor(model, targets); 659 constructor(model, targets);
660 } 660 }
661 661
662 /** 662 /**
663 * Convenience constructor for just one viewer. 663 * Convenience constructor for just one viewer.
664 * 664 *
665 * @param model the linked mode model 665 * @param model the linked mode model
666 * @param viewer the viewer upon which the linked mode UI should act 666 * @param viewer the viewer upon which the linked mode UI should act
667 */ 667 */
668 public LinkedModeUI(LinkedModeModel model, ITextViewer viewer) { 668 public this(LinkedModeModel model, ITextViewer viewer) {
669 constructor(model, new LinkedModeUITarget[]{new EmptyTarget(viewer)}); 669 constructor(model, new LinkedModeUITarget[]{new EmptyTarget(viewer)});
670 } 670 }
671 671
672 /** 672 /**
673 * Convenience constructor for multiple viewers. 673 * Convenience constructor for multiple viewers.
674 * 674 *
675 * @param model the linked mode model 675 * @param model the linked mode model
676 * @param viewers the non-empty list of viewers upon which the linked mode 676 * @param viewers the non-empty list of viewers upon which the linked mode
677 * UI should act 677 * UI should act
678 */ 678 */
679 public LinkedModeUI(LinkedModeModel model, ITextViewer[] viewers) { 679 public this(LinkedModeModel model, ITextViewer[] viewers) {
680 LinkedModeUITarget[] array= new LinkedModeUITarget[viewers.length]; 680 LinkedModeUITarget[] array= new LinkedModeUITarget[viewers.length];
681 for (int i= 0; i < array.length; i++) { 681 for (int i= 0; i < array.length; i++) {
682 array[i]= new EmptyTarget(viewers[i]); 682 array[i]= new EmptyTarget(viewers[i]);
683 } 683 }
684 constructor(model, array); 684 constructor(model, array);
688 * Convenience constructor for one target. 688 * Convenience constructor for one target.
689 * 689 *
690 * @param model the linked mode model 690 * @param model the linked mode model
691 * @param target the target upon which the linked mode UI should act 691 * @param target the target upon which the linked mode UI should act
692 */ 692 */
693 public LinkedModeUI(LinkedModeModel model, LinkedModeUITarget target) { 693 public this(LinkedModeModel model, LinkedModeUITarget target) {
694 constructor(model, new LinkedModeUITarget[]{target}); 694 constructor(model, new LinkedModeUITarget[]{target});
695 } 695 }
696 696
697 /** 697 /**
698 * This does the actual constructor work. 698 * This does the actual constructor work.