classpathhelper.eclipse.tomcat.listener.ui
Class TomcatPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended byclasspathhelper.eclipse.tomcat.listener.ui.TomcatPlugin

public class TomcatPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
TomcatPlugin()
          The constructor.
 
Method Summary
static TomcatPlugin getDefault()
          Returns the shared instance.
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static java.lang.String getTomcatApp()
           
static java.lang.String getTomcatHome()
           
static java.lang.String getTomcatVersion()
           
protected  void initializeDefaultPluginPreferences()
           
 void start(BundleContext context)
          This method is called upon plug-in activation
 void stop(BundleContext context)
          This method is called when the plug-in is stopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatPlugin

public TomcatPlugin()
The constructor.

Since:
1.0
Method Detail

start

public void start(BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation

Throws:
java.lang.Exception
Since:
1.0

stop

public void stop(BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped

Throws:
java.lang.Exception

getDefault

public static TomcatPlugin getDefault()
Returns the shared instance.


getResourceString

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

Since:
1.0

getResourceBundle

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

Since:
1.0

getTomcatVersion

public static java.lang.String getTomcatVersion()
Returns:
The value of the Tomcat Version preference.
Since:
1.0
See Also:
PreferencesConstants.TOMCAT_VERSION_PREF

getTomcatHome

public static java.lang.String getTomcatHome()
Returns:
The value of the Tomcat Home preference.
Since:
1.0
See Also:
PreferencesConstants.TOMCAT_HOME_PREF

getTomcatApp

public static java.lang.String getTomcatApp()
Returns:
The value of the Tomcat App preference.
Since:
1.0
See Also:
PreferencesConstants.TOMCAT_APPS_PREF

initializeDefaultPluginPreferences

protected void initializeDefaultPluginPreferences()