Mercurial > projects > dwt-addons
comparison dwtx/jface/text/templates/DocumentTemplateContext.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 75302ef3f92f |
children |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
97 * @since 3.1 | 97 * @since 3.1 |
98 */ | 98 */ |
99 public this(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(cast(Object)document); |
103 Assert.isNotNull(position); | 103 Assert.isNotNull(position); |
104 Assert.isTrue(position.getOffset() <= document.getLength()); | 104 Assert.isTrue(position.getOffset() <= document.getLength()); |
105 | 105 |
106 fDocument= document; | 106 fDocument= document; |
107 fPosition= position; | 107 fPosition= position; |