Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/SourceViewer.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 |
---|---|
151 /** | 151 /** |
152 * Creates a new ruler layout with the given gap between text viewer and vertical ruler. | 152 * Creates a new ruler layout with the given gap between text viewer and vertical ruler. |
153 * | 153 * |
154 * @param gap the gap between text viewer and vertical ruler | 154 * @param gap the gap between text viewer and vertical ruler |
155 */ | 155 */ |
156 public RulerLayout(int gap) { | 156 public this(int gap) { |
157 fGap= gap; | 157 fGap= gap; |
158 } | 158 } |
159 | 159 |
160 /* | 160 /* |
161 * @see Layout#computeSize(Composite, int, int, bool) | 161 * @see Layout#computeSize(Composite, int, int, bool) |
323 * @param parent the parent of the viewer's control | 323 * @param parent the parent of the viewer's control |
324 * @param ruler the vertical ruler used by this source viewer | 324 * @param ruler the vertical ruler used by this source viewer |
325 * @param styles the DWT style bits for the viewer's control, | 325 * @param styles the DWT style bits for the viewer's control, |
326 * <em>if <code>DWT.WRAP</code> is set then a custom document adapter needs to be provided, see {@link #createDocumentAdapter()} | 326 * <em>if <code>DWT.WRAP</code> is set then a custom document adapter needs to be provided, see {@link #createDocumentAdapter()} |
327 */ | 327 */ |
328 public SourceViewer(Composite parent, IVerticalRuler ruler, int styles) { | 328 public this(Composite parent, IVerticalRuler ruler, int styles) { |
329 this(parent, ruler, null, false, styles); | 329 this(parent, ruler, null, false, styles); |
330 } | 330 } |
331 | 331 |
332 /** | 332 /** |
333 * Constructs a new source viewer. The vertical ruler is initially visible. | 333 * Constructs a new source viewer. The vertical ruler is initially visible. |
340 * @param showAnnotationsOverview <code>true</code> if the overview ruler should be visible, <code>false</code> otherwise | 340 * @param showAnnotationsOverview <code>true</code> if the overview ruler should be visible, <code>false</code> otherwise |
341 * @param styles the DWT style bits for the viewer's control, | 341 * @param styles the DWT style bits for the viewer's control, |
342 * <em>if <code>DWT.WRAP</code> is set then a custom document adapter needs to be provided, see {@link #createDocumentAdapter()} | 342 * <em>if <code>DWT.WRAP</code> is set then a custom document adapter needs to be provided, see {@link #createDocumentAdapter()} |
343 * @since 2.1 | 343 * @since 2.1 |
344 */ | 344 */ |
345 public SourceViewer(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler, bool showAnnotationsOverview, int styles) { | 345 public this(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler, bool showAnnotationsOverview, int styles) { |
346 super(); | 346 super(); |
347 | 347 |
348 fVerticalRuler= verticalRuler; | 348 fVerticalRuler= verticalRuler; |
349 fIsVerticalRulerVisible= (verticalRuler !is null); | 349 fIsVerticalRulerVisible= (verticalRuler !is null); |
350 fOverviewRuler= overviewRuler; | 350 fOverviewRuler= overviewRuler; |