/*******************************************************************************
* Copyright (c) 2006, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.forms;
import org.eclipse.osgi.util.NLS;
import org.eclipse.rap.rwt.RWT;
// RAP [if]: need session aware NLS
// public class Messages extends NLS {
public class Messages {
private static final String BUNDLE_NAME = "org.eclipse.ui.internal.forms.Messages"; //$NON-NLS-1$
private Messages() {
}
// RAP [if]: need session aware NLS
// static {
// // initialize resource bundle
// NLS.initializeMessages(BUNDLE_NAME, Messages.class);
// }
public String FormDialog_defaultTitle;
public String FormText_copy;
public String Form_tooltip_minimize;
public String Form_tooltip_restore;
/*
* Message manager
*/
public String MessageManager_sMessageSummary;
public String MessageManager_sWarningSummary;
public String MessageManager_sErrorSummary;
public String MessageManager_pMessageSummary;
public String MessageManager_pWarningSummary;
public String MessageManager_pErrorSummary;
public String ToggleHyperlink_accessibleColumn;
public String ToggleHyperlink_accessibleName;
/**
* Load message values from bundle file
* @return localized message
*/
public static Messages get() {
return RWT.NLS.getISO8859_1Encoded( BUNDLE_NAME, Messages.class );
}
/**
* Bind the given message's substitution locations with the given string values.
*
* @param message the message to be manipulated
* @param bindings An array of objects to be inserted into the message
* @return the manipulated String
* @throws IllegalArgumentException if the text appearing within curly braces in the given message does not map to an integer
*/
public static String bind( final String message, final Object[] bindings ) {
return NLS.bind( message, bindings );
}
}