FileDocCategorySizeDatePackage
ViewPlugInPlugin.javaAPI DocExample1485Wed Mar 24 12:23:12 GMT 2004org.cookbook.ch13.ViewPlugIn

ViewPlugInPlugin

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

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

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

		return ResourcesPlugin.getWorkspace();