1 /*******************************************************************************
2 * Copyright (c) 2005, 2008 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
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.jdt.internal.corext.util;
13 import com.ibm.icu.text.MessageFormat;
16 * Helper class to format message strings.
20 public class Messages {
22 public static String format(String message, Object object) {
23 return MessageFormat.format(message, new Object[] { object});
26 public static String format(String message, Object[] objects) {
27 return MessageFormat.format(message, objects);
31 // Not for instantiation