com.bonevich.eclipse.logging
Class LoggingPluginMessages

java.lang.Object
  extended bycom.bonevich.eclipse.logging.LoggingPluginMessages
All Implemented Interfaces:
LoggingPluginResources

public class LoggingPluginMessages
extends java.lang.Object
implements LoggingPluginResources

Utility to access and bind arguments to resource messages used by this plugin.

Author:
jbonevic

Field Summary
 
Fields inherited from interface com.bonevich.eclipse.logging.LoggingPluginResources
ACTION_LOGGING_CONDITIONAL_CLOSE, ACTION_LOGGING_DEBUG, ACTION_LOGGING_DEBUG_CONDITIONAL, ACTION_LOGGING_ERROR, ACTION_LOGGING_ERROR_CONDITIONAL, ACTION_LOGGING_FATAL, ACTION_LOGGING_FATAL_CONDITIONAL, ACTION_LOGGING_INFO, ACTION_LOGGING_INFO_CONDITIONAL, ACTION_LOGGING_TRACE, ACTION_LOGGING_TRACE_CONDITIONAL, ACTION_LOGGING_WARN, ACTION_LOGGING_WARN_CONDITIONAL, ADD_LOGGING_DIALOG, ADD_LOGGING_ERROR, LOGGING_FIELD_DECLARATION, LOGGING_IMPORT_CLASS, LOGGING_LIB_PATHVAR, LOGGING_PREFS_API_AVALON_LABEL, LOGGING_PREFS_API_COMMONS_LABEL, LOGGING_PREFS_API_JDK_1_4_LABEL, LOGGING_PREFS_API_LABEL, LOGGING_PREFS_API_LOG4J_LABEL, LOGGING_PREFS_AUTOSAVE_LABEL, LOGGING_PREFS_CONDITIONALS_LABEL, LOGGING_PREFS_DEBUG_CONDITIONALS_LABEL, LOGGING_PREFS_ERROR_CONDITIONALS_LABEL, LOGGING_PREFS_FATAL_CONDITIONALS_LABEL, LOGGING_PREFS_FIELD_LABEL, LOGGING_PREFS_GENERAL, LOGGING_PREFS_INFO_CONDITIONALS_LABEL, LOGGING_PREFS_TRACE_CONDITIONALS_LABEL, LOGGING_PREFS_WARN_CONDITIONALS_LABEL, RESOURCE_BUNDLE
 
Method Summary
static java.lang.String bind(java.lang.String key)
          Gets a string from the resource bundle.
static java.lang.String bind(java.lang.String key, java.lang.Object[] args)
          Gets a string from the resource bundle and binds it with the given arguments.
static java.lang.String bind(java.lang.String id, java.lang.String binding)
          Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.
static java.lang.String bind(java.lang.String id, java.lang.String binding1, java.lang.String binding2)
          Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.
static java.util.ResourceBundle getResourceBundle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResourceBundle

public static java.util.ResourceBundle getResourceBundle()

bind

public static java.lang.String bind(java.lang.String id,
                                    java.lang.String binding)
Lookup the message with the given ID in this catalog and bind its substitution locations with the given string.


bind

public static java.lang.String bind(java.lang.String id,
                                    java.lang.String binding1,
                                    java.lang.String binding2)
Lookup the message with the given ID in this catalog and bind its substitution locations with the given strings.


bind

public static java.lang.String bind(java.lang.String key,
                                    java.lang.Object[] args)
Gets a string from the resource bundle and binds it with the given arguments. If the key is not found, return the key.


bind

public static java.lang.String bind(java.lang.String key)
Gets a string from the resource bundle. We don't want to crash because of a missing String. Returns the key if not found.



Copyright © 2003-2004 bonevich.com. All Rights Reserved.