org.eclipse.xtext.ui.editor.folding
Class FoldingMessages

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.folding.FoldingMessages

public class FoldingMessages
extends java.lang.Object

Class that gives access to the folding messages resource bundle.

Author:
Michael Clay - Initial contribution and API

Method Summary
static java.lang.String getFormattedString(java.lang.String key, java.lang.Object arg)
          Returns the formatted resource string associated with the given key in the resource bundle.
static java.util.ResourceBundle getResourceBundle()
          Returns the resource bundle managed by the receiver.
static java.lang.String getString(java.lang.String key)
          Returns the resource string associated with the given key in the resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static java.lang.String getString(java.lang.String key)
Returns the resource string associated with the given key in the resource bundle. If there isn't any value under the given key, the key is returned.

Parameters:
key - the resource key
Returns:
the string

getResourceBundle

public static java.util.ResourceBundle getResourceBundle()
Returns the resource bundle managed by the receiver.

Returns:
the resource bundle

getFormattedString

public static java.lang.String getFormattedString(java.lang.String key,
                                                  java.lang.Object arg)
Returns the formatted resource string associated with the given key in the resource bundle. MessageFormat is used to format the message. If there isn't any value under the given key, the key is returned.

Parameters:
key - the resource key
arg - the message argument
Returns:
the string