FileDocCategorySizeDatePackage
Ch11_01Plugin.javaAPI DocExample1467Fri Dec 05 13:06:24 GMT 2003org.eclipsebook.ch11.Ch11_01

Ch11_01Plugin

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

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

		super(descriptor);
		plugin = this;
		try {
			resourceBundle= ResourceBundle.getBundle("org.eclipsebook.ch11.Ch11_01.Ch11_01PluginResources");
		} catch (MissingResourceException x) {
			resourceBundle = null;
		}
	
Methods Summary
public static org.eclipsebook.ch11.Ch11_01.Ch11_01PlugingetDefault()
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= Ch11_01Plugin.getDefault().getResourceBundle();
		try {
			return bundle.getString(key);
		} catch (MissingResourceException e) {
			return key;
		}
	
public static IWorkspacegetWorkspace()
Returns the workspace instance.

		return ResourcesPlugin.getWorkspace();