comparison dwtx/jface/text/rules/DefaultDamagerRepairer.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 6dcb0baaa031
children eb21d3dfc767
comparison
equal deleted inserted replaced
137:25170b5a8951 138:b6bad70d540a
228 * @param token the token whose text attribute is to be determined 228 * @param token the token whose text attribute is to be determined
229 * @return the token's text attribute 229 * @return the token's text attribute
230 */ 230 */
231 protected TextAttribute getTokenTextAttribute(IToken token) { 231 protected TextAttribute getTokenTextAttribute(IToken token) {
232 Object data= token.getData(); 232 Object data= token.getData();
233 if (data instanceof TextAttribute) 233 if ( cast(TextAttribute)data )
234 return cast(TextAttribute) data; 234 return cast(TextAttribute) data;
235 return fDefaultTextAttribute; 235 return fDefaultTextAttribute;
236 } 236 }
237 237
238 /** 238 /**