org.ceno.ui
Class Activator

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.ceno.ui.Activator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The activator class controls the plug-in life cycle


Field Summary
static java.lang.String PLUGIN_ID
           
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
Activator()
          The constructor
 
Method Summary
 IEventCommunicator getCliService()
           
 IConnectorService getConnService()
           
static Activator getDefault()
          Returns the shared instance
 Developer getDeveloper()
           
 IDeveloperResourceStatesObserverService getDrsObserverService()
           
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path
 IMessagesObserverService getMsgObserverService()
           
 ICenoMessagesService getMsgService()
           
 org.eclipse.ui.IPartListener getPartListener()
           
 IPeriodicSchedulerService getSchedulerService()
           
 ICommunicatorService getSrvService()
           
 ICenoTrackerService getTrackerService()
           
 void initDeveloper(Developer d)
          Called after login to set developer with id from backend
static void log(int severity, java.lang.String message)
           
static void log(int severity, java.lang.String message, java.lang.Throwable throwable)
           
 void setDeveloper(Developer developer)
           
 void setPartListener(org.eclipse.ui.IPartListener partListener)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 void synchOpenedResources()
           
 
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

PLUGIN_ID

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

Activator

public Activator()
The constructor

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

synchOpenedResources

public void synchOpenedResources()

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception

getDefault

public static Activator getDefault()
Returns the shared instance

Returns:
the shared instance

getImageDescriptor

public static org.eclipse.jface.resource.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

log

public static void log(int severity,
                       java.lang.String message)

log

public static void log(int severity,
                       java.lang.String message,
                       java.lang.Throwable throwable)

getSrvService

public ICommunicatorService getSrvService()
Returns:
the srvService

getCliService

public IEventCommunicator getCliService()
Returns:
the cliService

getConnService

public IConnectorService getConnService()
Returns:
the connService

getSchedulerService

public IPeriodicSchedulerService getSchedulerService()
Returns:
the schedulerService

getMsgObserverService

public IMessagesObserverService getMsgObserverService()
Returns:
the msgObserverService

getDrsObserverService

public IDeveloperResourceStatesObserverService getDrsObserverService()
Returns:
the drsObserverService

getMsgService

public ICenoMessagesService getMsgService()
Returns:
the msgService

getTrackerService

public ICenoTrackerService getTrackerService()
Returns:
the trackerService

getPartListener

public org.eclipse.ui.IPartListener getPartListener()
Returns:
the partListener

setPartListener

public void setPartListener(org.eclipse.ui.IPartListener partListener)
Parameters:
partListener - the partListener to set

getDeveloper

public Developer getDeveloper()
Returns:
the developer

setDeveloper

public void setDeveloper(Developer developer)
Parameters:
developer - the developer to set

initDeveloper

public void initDeveloper(Developer d)
Called after login to set developer with id from backend

Parameters:
d -
Since:
0.0.2