FileDocCategorySizeDatePackage
Ch12_01Plugin.javaAPI DocExample1467Tue Dec 09 14:04:24 GMT 2003org.eclipsebook.ch12.Ch12_01

Ch12_01Plugin

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

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

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

		return ResourcesPlugin.getWorkspace();