FileDocCategorySizeDatePackage
EditorPlugInPlugin.javaAPI DocExample1501Tue Mar 23 11:42:40 GMT 2004org.cookbook.ch13.EditorPlugIn

EditorPlugInPlugin

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

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

		super(descriptor);
		plugin = this;
		try {
			resourceBundle= ResourceBundle.getBundle("org.cookbook.ch13.EditorPlugIn.EditorPlugInPluginResources");
		} catch (MissingResourceException x) {
			resourceBundle = null;
		}
	
Methods Summary
public static org.cookbook.ch13.EditorPlugIn.EditorPlugInPlugingetDefault()
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= EditorPlugInPlugin.getDefault().getResourceBundle();
		try {
			return bundle.getString(key);
		} catch (MissingResourceException e) {
			return key;
		}
	
public static IWorkspacegetWorkspace()
Returns the workspace instance.

		return ResourcesPlugin.getWorkspace();