com.opnworks.timesheet.client
Class TimesheetClientPlugin

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended byorg.eclipse.ui.plugin.AbstractUIPlugin
          extended bycom.opnworks.timesheet.client.TimesheetClientPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

Author:
Laurent

Field Summary
static java.lang.String ACTION_SET_HELP
           
static java.lang.String ACTION_SET_SYSTEM
           
static java.lang.String ACTIVITY_TYPES_VIEW
          Description of the Field
static java.lang.String BROWSER_VIEW
          Description of the Field
static java.lang.String CALENDAR_VIEW
          Description of the Field
static java.lang.String IMG_ACTIVITY
           
static java.lang.String IMG_ADD
           
static java.lang.String IMG_CLOCK
           
static java.lang.String IMG_DUPLICATE
           
static java.lang.String IMG_FOLDER
           
static java.lang.String IMG_HTML
           
static java.lang.String IMG_ORGANIZATION
           
static java.lang.String IMG_PROJECT
           
static java.lang.String IMG_REMOVE
           
static java.lang.String IMG_TEXT
           
static java.lang.String IMG_UPDATE
           
static java.lang.String IMG_WEEK
           
static java.lang.String IMG_XML
           
static java.lang.String LOCAL_RESOURCE_FOLDER_NAME
          Description of the Field
static java.lang.String ORGANIZATIONS_VIEW
          Description of the Field
static java.lang.String PATH_HELP_FILE
           
static java.lang.String PLUGIN_ID
          Identifies the workbench plug-in.
static java.lang.String TIMESHEET_VIEW
          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
TimesheetClientPlugin()
          The constructor.
TimesheetClientPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
           
 
Method Summary
static TimesheetClientPlugin getDefault()
          Returns the shared instance.
static org.eclipse.core.runtime.IPath getLocalResourceDirectory()
           
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle
static java.lang.String getUsername()
           
static org.eclipse.core.resources.IWorkspace getWorkspace()
          Returns the workspace instance.
 void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry registry)
           
 void loadDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
          Description of the Method
static void refreshWorkbench()
           
static void showErrorMessage(java.lang.String title, java.lang.Exception e)
          Show an error message
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PATH_HELP_FILE

public static final java.lang.String PATH_HELP_FILE
See Also:
Constant Field Values

ACTION_SET_HELP

public static final java.lang.String ACTION_SET_HELP
See Also:
Constant Field Values

ACTION_SET_SYSTEM

public static final java.lang.String ACTION_SET_SYSTEM
See Also:
Constant Field Values

PLUGIN_ID

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

See Also:
Constant Field Values

CALENDAR_VIEW

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

See Also:
Constant Field Values

ORGANIZATIONS_VIEW

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

See Also:
Constant Field Values

TIMESHEET_VIEW

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

See Also:
Constant Field Values

ACTIVITY_TYPES_VIEW

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

See Also:
Constant Field Values

BROWSER_VIEW

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

See Also:
Constant Field Values

LOCAL_RESOURCE_FOLDER_NAME

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

See Also:
Constant Field Values

IMG_XML

public static final java.lang.String IMG_XML
See Also:
Constant Field Values

IMG_HTML

public static final java.lang.String IMG_HTML
See Also:
Constant Field Values

IMG_TEXT

public static final java.lang.String IMG_TEXT
See Also:
Constant Field Values

IMG_WEEK

public static final java.lang.String IMG_WEEK
See Also:
Constant Field Values

IMG_ACTIVITY

public static final java.lang.String IMG_ACTIVITY
See Also:
Constant Field Values

IMG_ADD

public static final java.lang.String IMG_ADD
See Also:
Constant Field Values

IMG_REMOVE

public static final java.lang.String IMG_REMOVE
See Also:
Constant Field Values

IMG_UPDATE

public static final java.lang.String IMG_UPDATE
See Also:
Constant Field Values

IMG_DUPLICATE

public static final java.lang.String IMG_DUPLICATE
See Also:
Constant Field Values

IMG_ORGANIZATION

public static final java.lang.String IMG_ORGANIZATION
See Also:
Constant Field Values

IMG_PROJECT

public static final java.lang.String IMG_PROJECT
See Also:
Constant Field Values

IMG_FOLDER

public static final java.lang.String IMG_FOLDER
See Also:
Constant Field Values

IMG_CLOCK

public static final java.lang.String IMG_CLOCK
See Also:
Constant Field Values
Constructor Detail

TimesheetClientPlugin

public TimesheetClientPlugin()
The constructor.


TimesheetClientPlugin

public TimesheetClientPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Throws:
java.lang.Exception

loadDefaultPreferences

public void loadDefaultPreferences(org.eclipse.jface.preference.IPreferenceStore store)
Description of the Method

Parameters:
store - Description of Parameter

getDefault

public static TimesheetClientPlugin getDefault()
Returns the shared instance.

Returns:
The Default value

getWorkspace

public static org.eclipse.core.resources.IWorkspace getWorkspace()
Returns the workspace instance.

Returns:
The Workspace value

getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle

Parameters:
key - Description of Parameter
Returns:
The ResourceString value

getLocalResourceDirectory

public static org.eclipse.core.runtime.IPath getLocalResourceDirectory()
Returns:

getUsername

public static java.lang.String getUsername()
Returns:

showErrorMessage

public static void showErrorMessage(java.lang.String title,
                                    java.lang.Exception e)
Show an error message

Parameters:
title - Description of Parameter
e - Description of Parameter

refreshWorkbench

public static void refreshWorkbench()

initializeImageRegistry

public void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry registry)