comparison dwtx/jface/text/templates/TemplateVariableResolver.d @ 148:b3dec671d1f7

...
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 22:40:25 +0200
parents 7d818bd32d63
children 1a5b8f8129df
comparison
equal deleted inserted replaced
147:000f9136b8f7 148:b3dec671d1f7
120 */ 120 */
121 protected String[] resolveAll(TemplateContext context) { 121 protected String[] resolveAll(TemplateContext context) {
122 String binding= resolve(context); 122 String binding= resolve(context);
123 if (binding is null) 123 if (binding is null)
124 return new String[0]; 124 return new String[0];
125 return new String[] { binding }; 125 return [ binding ];
126 } 126 }
127 127
128 /** 128 /**
129 * Resolves <code>variable</code> in <code>context</code>. To resolve 129 * Resolves <code>variable</code> in <code>context</code>. To resolve
130 * means to find a valid binding of the receiver's type in the given <code>TemplateContext</code>. 130 * means to find a valid binding of the receiver's type in the given <code>TemplateContext</code>.