com.opnworks.timesheet.eclipse
Class TimesheetPlugin

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended bycom.opnworks.timesheet.eclipse.TimesheetPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator, ITimesheetStateListener

public class TimesheetPlugin
extends org.eclipse.core.runtime.Plugin
implements ITimesheetStateListener

A class that extends the org.eclipse.core.runtime.Plugin class for the timesheet system.

Author:
Laurent

Field Summary
static java.lang.String PLUGIN_ID
          Identifies the workbench plug-in.
static java.lang.String TIMESHEET_STATE_CHANGE_EXTENSION
          Description of the Field
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
TimesheetPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
           
 
Method Summary
 void start(org.osgi.framework.BundleContext context)
           
 void stateChanged(Timesheet timesheet, java.lang.String previousState)
          Description of the Method
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
Identifies the workbench plug-in.

See Also:
Constant Field Values

TIMESHEET_STATE_CHANGE_EXTENSION

public static final java.lang.String TIMESHEET_STATE_CHANGE_EXTENSION
Description of the Field

See Also:
Constant Field Values
Constructor Detail

TimesheetPlugin

public TimesheetPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Parameters:
descriptor -
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stateChanged

public void stateChanged(Timesheet timesheet,
                         java.lang.String previousState)
Description of the Method

Specified by:
stateChanged in interface ITimesheetStateListener
Parameters:
timesheet - Description of Parameter
previousState - Description of Parameter