/** * The XAspectEditorPlugin is used for manipulating and tracing XAspect Objects * (file extension *.XA). This class provides the desktop and workbench for the * the entire plugin. * * This class generated by the Eclipse PDE. * * @author JSeifried * @version 0.9.0 * */ package jseifried.xaspecteditor; import java.util.MissingResourceException; import java.util.ResourceBundle; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.ui.plugin.AbstractUIPlugin; public class XAspectEditorPlugin extends AbstractUIPlugin { private static XAspectEditorPlugin plugin; private ResourceBundle resourceBundle; public XAspectEditorPlugin(IPluginDescriptor descriptor) { super(descriptor); plugin = this; try { resourceBundle= ResourceBundle.getBundle("jseifried.xaspecteditor.XAspectEditorPluginResources"); } catch (MissingResourceException x) { resourceBundle = null; } } public static XAspectEditorPlugin getDefault() { return plugin; } public static IWorkspace getWorkspace() { return ResourcesPlugin.getWorkspace(); } public static String getResourceString(String key) { ResourceBundle bundle= XAspectEditorPlugin.getDefault().getResourceBundle(); try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } } public ResourceBundle getResourceBundle() { return resourceBundle; } }