Revision 1285

tmp/org.txm.core/src/java/org/txm/core/messages/TXMCoreMessages.java (revision 1285)
181 181
	
182 182
	/**
183 183
	 * Bind the given message's substitution locations with the given string values.
184
	 * 
184 185
	 * @param message
185
	 * @param binding1
186
	 * @param binding2
187
	 * @param binding3
186
	 * @param bindings
188 187
	 * @return
189 188
	 */
190
	// FIXME: do a method that takes vargs instead of these 2 methods
191
	public static String bind(String message, Object binding1, Object binding2, Object binding3) {
192
		return bind(message, new Object[] {binding1, binding2, binding3});
189
	public static String bind(String message, Object... bindings) {
190
		return bind(message, bindings);
193 191
	}
194 192
	
195
	/**
196
	 * Bind the given message's substitution locations with the given string values.
197
	 * @param message
198
	 * @param binding1
199
	 * @param binding2
200
	 * @param binding3
201
	 * @param binding4
202
	 * @return
203
	 */
204
	// FIXME: do a method that takes vargs instead of these 2 methods
205
	public static String bind(String message, Object binding1, Object binding2, Object binding3, Object binding4) {
206
		return bind(message, new Object[] {binding1, binding2, binding3, binding4});
207
	}
208
	
209
	
210 193
	static {
211 194
		// initialize resource bundle
212 195
		Utf8NLS.initializeMessages(BUNDLE_NAME, TXMCoreMessages.class);
213 196
	}
214
	
215
	
216
	
217 197
}

Also available in: Unified diff