Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.generalconfig
Class GeneralConfigPluginActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.generalconfig.GeneralConfigPluginActivator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

public class GeneralConfigPluginActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener

The general configuration form activator.

Author:
Yana Stamcheva

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The bundle context.
 
Constructor Summary
GeneralConfigPluginActivator()
           
 
Method Summary
static JPanel createConfigSectionComponent(String labelText)
          Creates a config section label from the given text.
static ConfigurationService getConfigurationService()
          Returns the ConfigurationService obtained from the bundle context.
static ProtocolProviderService[] getProtocolProviders()
          Returns an array of all available protocol providers.
static ResourceManagementService getResources()
          Gets the service giving access to all application resources.
(package private) static SystrayService getSystrayService()
          Returns the SystrayService obtained from the bundle context.
(package private) static UIService getUIService()
          Returns the UIService.
 void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
          Implements ServiceListener#serviceChanged(ServiceEvent).
 void start(org.osgi.framework.BundleContext bc)
          Starts this bundle.
 void stop(org.osgi.framework.BundleContext bc)
          Stops this bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

public static org.osgi.framework.BundleContext bundleContext
The bundle context.

Constructor Detail

GeneralConfigPluginActivator

public GeneralConfigPluginActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts this bundle.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - the bundle context
Throws:
Exception - if something goes wrong

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Stops this bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - the bundle context
Throws:
Exception - if something goes wrong

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns the ConfigurationService obtained from the bundle context.

Returns:
the ConfigurationService obtained from the bundle context

getSystrayService

static SystrayService getSystrayService()
Returns the SystrayService obtained from the bundle context.

Returns:
the SystrayService obtained from the bundle context

getUIService

static UIService getUIService()
Returns the UIService.

Returns:
the UIService

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
Implements ServiceListener#serviceChanged(ServiceEvent). Waits for the first ProtocolProviderService to register in order to start the auto-away functionality i.e. to call #startThread().

Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener
Parameters:
serviceEvent - the ServiceEvent that notified us

getProtocolProviders

public static ProtocolProviderService[] getProtocolProviders()
Returns an array of all available protocol providers.

Returns:
an array of all available protocol providers

getResources

public static ResourceManagementService getResources()
Gets the service giving access to all application resources.

Returns:
the service giving access to all application resources.

createConfigSectionComponent

public static JPanel createConfigSectionComponent(String labelText)
Creates a config section label from the given text.

Parameters:
labelText - the text of the label.
Returns:
the created label

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.