org.apache.cactus.eclipse.webapp.internal.ui
Class WebappPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.apache.cactus.eclipse.webapp.internal.ui.WebappPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class WebappPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.

Version:
$Id: WebappPlugin.java 238816 2004-02-29 16:36:46Z vmassol $

Field Summary
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
WebappPlugin(org.eclipse.core.runtime.IPluginDescriptor theDescriptor)
          The constructor.
 
Method Summary
static WebappPlugin getDefault()
          Returns the shared instance.
static java.lang.String getPluginId()
           
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle
static java.lang.String getResourceString(java.lang.String theKey)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static Webapp getWebapp(org.eclipse.jdt.core.IJavaProject theJavaProject)
           
static org.eclipse.core.resources.IWorkspace getWorkspace()
          Returns the workspace instance.
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, start, startup, stop
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebappPlugin

public WebappPlugin(org.eclipse.core.runtime.IPluginDescriptor theDescriptor)
The constructor.

Parameters:
theDescriptor - the descriptor for this plugin
Method Detail

getDefault

public static WebappPlugin getDefault()
Returns the shared instance.

Returns:
the instance of this plugin

getWorkspace

public static org.eclipse.core.resources.IWorkspace getWorkspace()
Returns the workspace instance.

Returns:
the instance of the current workspace

getResourceString

public static java.lang.String getResourceString(java.lang.String theKey)
Returns the string from the plugin's resource bundle, or 'key' if not found.

Parameters:
theKey - the key of the resource to return
Returns:
the string

getResourceBundle

public final java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle

Returns:
the resource bundle

getPluginId

public static java.lang.String getPluginId()
Returns:
the plugin identifier

getWebapp

public static Webapp getWebapp(org.eclipse.jdt.core.IJavaProject theJavaProject)
Parameters:
theJavaProject - the Java project to get the webapp from
Returns:
the webapp associated to the given Java project


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.