FileDocCategorySizeDatePackage
Ch12_02Plugin.javaAPI DocExample1467Tue Dec 09 11:06:40 GMT 2003org.eclipsebook.ch12.Ch12_02

Ch12_02Plugin

public class Ch12_02Plugin extends AbstractUIPlugin
The main plugin class to be used in the desktop.

Fields Summary
private static Ch12_02Plugin
plugin
private ResourceBundle
resourceBundle
Constructors Summary
public Ch12_02Plugin(IPluginDescriptor descriptor)
The constructor.

		super(descriptor);
		plugin = this;
		try {
			resourceBundle= ResourceBundle.getBundle("org.eclipsebook.ch12.Ch12_02.Ch12_02PluginResources");
		} catch (MissingResourceException x) {
			resourceBundle = null;
		}
	
Methods Summary
public static org.eclipsebook.ch12.Ch12_02.Ch12_02PlugingetDefault()
Returns the shared instance.

		return plugin;
	
public java.util.ResourceBundlegetResourceBundle()
Returns the plugin's resource bundle,

		return resourceBundle;
	
public static java.lang.StringgetResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.

		ResourceBundle bundle= Ch12_02Plugin.getDefault().getResourceBundle();
		try {
			return bundle.getString(key);
		} catch (MissingResourceException e) {
			return key;
		}
	
public static IWorkspacegetWorkspace()
Returns the workspace instance.

		return ResourcesPlugin.getWorkspace();