com.ibm.jdg2e.serviceability
Class ServiceablePlugin

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended byorg.eclipse.ui.plugin.AbstractUIPlugin
          extended bycom.ibm.jdg2e.serviceability.ServiceablePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The main plugin class used in the service example.


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
ServiceablePlugin()
           
 
Method Summary
protected  org.eclipse.core.runtime.Status createStatus(int severity, java.lang.String msg)
          Method createStatus is helper method that creates a Status object.
static ServiceablePlugin getDefault()
          Returns the shared instance of this plug-in.
 org.eclipse.core.runtime.MultiStatus getServiceInfo(org.eclipse.core.runtime.CoreException exception)
          Returns the plugin's product vital data.
 
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

ServiceablePlugin

public ServiceablePlugin()
Method Detail

createStatus

protected org.eclipse.core.runtime.Status createStatus(int severity,
                                                       java.lang.String msg)
Method createStatus is helper method that creates a Status object.


getDefault

public static ServiceablePlugin getDefault()
Returns the shared instance of this plug-in.


getServiceInfo

public org.eclipse.core.runtime.MultiStatus getServiceInfo(org.eclipse.core.runtime.CoreException exception)
Returns the plugin's product vital data. The plugin data comes from the values from the main section of the bundle's Manifest file. The vitalInfoStatus method creates a Status object for the provider name, plug-in name, plug-in id, and version. Each Status object is added to the MultiStatus object.