KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > expressions > Messages


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.expressions;
12
13 import org.eclipse.osgi.util.NLS;
14
15
16 /**
17  * Helper class to format message strings.
18  *
19  * @since 3.1
20  */

21 public class Messages {
22
23     public static String JavaDoc format(String JavaDoc message, Object JavaDoc object) {
24         return NLS.bind(message, object);
25     }
26
27     public static String JavaDoc format(String JavaDoc message, Object JavaDoc[] objects) {
28         return NLS.bind(message, objects);
29     }
30
31     private Messages() {
32         // Not for instantiation
33
}
34 }
Popular Tags