|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.patterns.framework.l10n.AbstractResourceManager
AbstractResourceManager is a minimal copy of the abstract class com.ibm.xtools.common.core.internal.l10n.AbstractResourceManager needed to implement the resource requirements of the patterns framework without using any non-public classes.
The code here is plagerized.
Nested Class Summary | |
class |
AbstractResourceManager.EmptyResourceBundle
The EmptyResourceBundle represents a resource bundle object that is always empty. |
Constructor Summary | |
protected |
AbstractResourceManager()
Create a resource manager instance and initialize resources it will manage. |
Method Summary | |
protected ResourceBundle |
createMessagesBundle()
Load messages resource bundle. |
protected ResourceBundle |
getMessagesBundle()
Returns the messageBundle. |
protected String |
getMessagesBundleDefaultName()
Returns default name for the messages bundle. |
protected String |
getMessagesBundleName()
Returns the name of the messages bundle, including the package path. |
protected String |
getPackageName()
Returns a package name of the class of this object |
protected abstract org.eclipse.core.runtime.Plugin |
getPlugin()
Returns the plugin that hosts the resource manager |
String |
getString(String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
String |
getString(String key,
String defaultValue)
Returns the string from the plugin's resource bundle, or the defaultValue if not found. |
protected void |
initializeMessageResources()
Populate messageBundle with text related resources from the MessageBundle properties file. |
protected abstract void |
initializeResources()
Load various resources - text, images, fonts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractResourceManager()
Method Detail |
protected ResourceBundle getMessagesBundle()
protected String getPackageName()
protected String getMessagesBundleName()
protected abstract org.eclipse.core.runtime.Plugin getPlugin()
protected abstract void initializeResources()
initializeMessageResources()
protected void initializeMessageResources()
createMessagesBundle()
protected ResourceBundle createMessagesBundle()
public String getString(String key)
key
- - the key for the value to be retrieved
public String getString(String key, String defaultValue)
key
- - the key to retrieve the valuedefaultValue
- - the default value to return
if no value by the given key was found
protected String getMessagesBundleDefaultName()
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.