classpathhelper.eclipse.basicmodel
Class BMPlugin

java.lang.Object
  extended byAbstractUIPlugin
      extended byclasspathhelper.eclipse.basicmodel.BMPlugin

public class BMPlugin
extends AbstractUIPlugin

The main plugin class to be used in the desktop.

Since:
1.0
Author:
bharris
See Also:
Serialized Form

Constructor Summary
BMPlugin()
          The constructor.
 
Method Summary
static java.lang.String getClassPathPreference()
          Helper method that retrieves the BasicClasspath preference.
static BMPlugin getDefault()
          Returns the shared instance.
static ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
protected  void initializeDefaultPluginPreferences()
          Method to provide a default value for preferences.
 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

BMPlugin

public BMPlugin()
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
Since:
1.0

getDefault

public static BMPlugin getDefault()
Returns the shared instance.

Since:
1.0

getImageDescriptor

public static ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path.

Parameters:
path - the path
Returns:
the image descriptor
Since:
1.0

getClassPathPreference

public static java.lang.String getClassPathPreference()
Helper method that retrieves the BasicClasspath preference.

Returns:
The preference value formatted as a standard classpath string.
Since:
1.0

initializeDefaultPluginPreferences

protected void initializeDefaultPluginPreferences()
Method to provide a default value for preferences.

Since:
1.0