IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.l10n
Class ResourceManager

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.l10n.AbstractResourceManager
      extended bycom.ibm.xtools.patterns.framework.l10n.ResourceManager

public final class ResourceManager
extends AbstractResourceManager

This is a singleton resource manager object that manages string, image, font and cursor types of resources for this plug-in.


Nested Class Summary
 
Nested classes inherited from class com.ibm.xtools.patterns.framework.l10n.AbstractResourceManager
AbstractResourceManager.EmptyResourceBundle
 
Method Summary
static String getI18NString(String key)
          A shortcut method to get localized string
static AbstractResourceManager getInstance()
          Return singleton instance of the resource manager
protected  org.eclipse.core.runtime.Plugin getPlugin()
          Returns the plugin that hosts the resource manager
protected  void initializeResources()
          Load various resources - text, images, fonts.
 
Methods inherited from class com.ibm.xtools.patterns.framework.l10n.AbstractResourceManager
createMessagesBundle, getMessagesBundle, getMessagesBundleDefaultName, getMessagesBundleName, getPackageName, getString, getString, initializeMessageResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getI18NString

public static String getI18NString(String key)
A shortcut method to get localized string

Parameters:
key - resource bundle key.
Returns:
localized string value or a key if the bundle does not contain this entry

getInstance

public static AbstractResourceManager getInstance()
Return singleton instance of the resource manager

Returns:
AbstractResourceManager

getPlugin

protected org.eclipse.core.runtime.Plugin getPlugin()
Description copied from class: AbstractResourceManager
Returns the plugin that hosts the resource manager

Specified by:
getPlugin in class AbstractResourceManager
Returns:
Plugin the plugin that hosts the resource manager

initializeResources

protected void initializeResources()
Description copied from class: AbstractResourceManager
Load various resources - text, images, fonts. Do nothing by default. Subclasses should override this method to include initialization of the particular resource types.

Specified by:
initializeResources in class AbstractResourceManager
See Also:
AbstractResourceManager.initializeMessageResources()

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.