de.cau.cs.kieler.kwebs.client
Class KwebsClientPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by de.cau.cs.kieler.kwebs.client.KwebsClientPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class KwebsClientPlugin
extends Plugin

Activator for the client plug-in. It provides storage management for the user defined provider list.

Rating proposed yellow
(2011-08-02) reviewed by ckru, mri, msp

Field Summary
static String PLUGIN_ID
          The ID of this plug-in.
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
KwebsClientPlugin()
           
 
Method Summary
static ImageDescriptor getImageDescriptor(String path)
          Returns an image descriptor to an image contained in this plug-in.
static KwebsClientPlugin getInstance()
          Returns the instance of this activator.
 IPreferenceStore getPreferenceStore()
          Returns the preference store associated with this plug-in.
 void start(org.osgi.framework.BundleContext context)
          
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final String PLUGIN_ID
The ID of this plug-in.

See Also:
Constant Field Values
Constructor Detail

KwebsClientPlugin

public KwebsClientPlugin()
Method Detail

start

public final void start(org.osgi.framework.BundleContext context)
                 throws Exception

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class Plugin
Throws:
Exception

getInstance

public static KwebsClientPlugin getInstance()
Returns the instance of this activator.

Returns:
the instance of this activator

getPreferenceStore

public final IPreferenceStore getPreferenceStore()
Returns the preference store associated with this plug-in.

Returns:
the preference store associated with this plug-in

getImageDescriptor

public static ImageDescriptor getImageDescriptor(String path)
Returns an image descriptor to an image contained in this plug-in.

Parameters:
path - path to the image
Returns:
the image descriptor or null if the specified path is not contained in this bundle