Mercurial > projects > dwt-addons
comparison dwtx/jface/text/templates/DocumentTemplateContext.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 | 26688fec6d23 |
comparison
equal
deleted
inserted
replaced
132:77bd3bb3d7b8 | 133:7d818bd32d63 |
---|---|
78 * @param type the context type | 78 * @param type the context type |
79 * @param document the document this context applies to | 79 * @param document the document this context applies to |
80 * @param offset the offset of the document region | 80 * @param offset the offset of the document region |
81 * @param length the length of the document region | 81 * @param length the length of the document region |
82 */ | 82 */ |
83 public DocumentTemplateContext(TemplateContextType type, IDocument document, int offset, int length) { | 83 public this(TemplateContextType type, IDocument document, int offset, int length) { |
84 this(type, document, new Position(offset, length)); | 84 this(type, document, new Position(offset, length)); |
85 } | 85 } |
86 | 86 |
87 /** | 87 /** |
88 * Creates a document template context. The supplied <code>Position</code> | 88 * Creates a document template context. The supplied <code>Position</code> |
94 * @param document the document this context applies to | 94 * @param document the document this context applies to |
95 * @param position the position describing the area of the document which | 95 * @param position the position describing the area of the document which |
96 * forms the template context | 96 * forms the template context |
97 * @since 3.1 | 97 * @since 3.1 |
98 */ | 98 */ |
99 public DocumentTemplateContext(TemplateContextType type, IDocument document, Position position) { | 99 public this(TemplateContextType type, IDocument document, Position position) { |
100 super(type); | 100 super(type); |
101 | 101 |
102 Assert.isNotNull(document); | 102 Assert.isNotNull(document); |
103 Assert.isNotNull(position); | 103 Assert.isNotNull(position); |
104 Assert.isTrue(position.getOffset() <= document.getLength()); | 104 Assert.isTrue(position.getOffset() <= document.getLength()); |