Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.globalshortcut
Class GlobalShortcutActivator

java.lang.Object
  extended by net.java.sip.communicator.impl.globalshortcut.GlobalShortcutActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class GlobalShortcutActivator
extends Object
implements org.osgi.framework.BundleActivator

OSGi Activator for global shortcut.

Author:
Sebastien Vincent

Field Summary
protected static GlobalShortcutServiceImpl globalShortcutService
          The GlobalShortcutServiceImpl.
 
Constructor Summary
GlobalShortcutActivator()
           
 
Method Summary
static KeybindingsService getKeybindingsService()
          Returns the KeybindingsService obtained from the bundle context.
static UIService getUIService()
          Returns the UIService obtained from the bundle context.
 void registerListenerWithProtocolProviderService()
          Get all registered ProtocolProviderService and set our listener.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts the execution of this service bundle in the specified context.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the execution of this service bundle in the specified context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

globalShortcutService

protected static GlobalShortcutServiceImpl globalShortcutService
The GlobalShortcutServiceImpl.

Constructor Detail

GlobalShortcutActivator

public GlobalShortcutActivator()
Method Detail

getKeybindingsService

public static KeybindingsService getKeybindingsService()
Returns the KeybindingsService obtained from the bundle context.

Returns:
the KeybindingsService obtained from the bundle context

getUIService

public static UIService getUIService()
Returns the UIService obtained from the bundle context.

Returns:
the UIService obtained from the bundle context

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts the execution of this service bundle in the specified context.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the context in which the service bundle is to start executing
Throws:
Exception - if an error occurs while starting the execution of the service bundle in the specified context

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops the execution of this service bundle in the specified context.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the context in which this service bundle is to stop executing
Throws:
Exception - if an error occurs while stopping the execution of the service bundle in the specified context

registerListenerWithProtocolProviderService

public void registerListenerWithProtocolProviderService()
Get all registered ProtocolProviderService and set our listener.


Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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