comparison dwtx/jface/text/rules/DefaultDamagerRepairer.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
88 * @param defaultTextAttribute the text attribute to be returned if non is specified by the current token, 88 * @param defaultTextAttribute the text attribute to be returned if non is specified by the current token,
89 * may not be <code>null</code> 89 * may not be <code>null</code>
90 * 90 *
91 * @deprecated use DefaultDamagerRepairer(ITokenScanner) instead 91 * @deprecated use DefaultDamagerRepairer(ITokenScanner) instead
92 */ 92 */
93 public DefaultDamagerRepairer(ITokenScanner scanner, TextAttribute defaultTextAttribute) { 93 public this(ITokenScanner scanner, TextAttribute defaultTextAttribute) {
94 94
95 Assert.isNotNull(defaultTextAttribute); 95 Assert.isNotNull(defaultTextAttribute);
96 96
97 fScanner= scanner; 97 fScanner= scanner;
98 fDefaultTextAttribute= defaultTextAttribute; 98 fDefaultTextAttribute= defaultTextAttribute;
102 * Creates a damager/repairer that uses the given scanner. The scanner may not be <code>null</code> 102 * Creates a damager/repairer that uses the given scanner. The scanner may not be <code>null</code>
103 * and is assumed to return only token that carry text attributes. 103 * and is assumed to return only token that carry text attributes.
104 * 104 *
105 * @param scanner the token scanner to be used, may not be <code>null</code> 105 * @param scanner the token scanner to be used, may not be <code>null</code>
106 */ 106 */
107 public DefaultDamagerRepairer(ITokenScanner scanner) { 107 public this(ITokenScanner scanner) {
108 108
109 Assert.isNotNull(scanner); 109 Assert.isNotNull(scanner);
110 110
111 fScanner= scanner; 111 fScanner= scanner;
112 fDefaultTextAttribute= new TextAttribute(null); 112 fDefaultTextAttribute= new TextAttribute(null);