Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.keybindingchooser
Class KeybindingChooserActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.keybindingchooser.KeybindingChooserActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

Enabling and disabling osgi functionality for the keybinding chooser.

Author:
Damian Johnson

Field Summary
static ResourceManagementService resourcesService
          The service used to obtain resources.
 
Constructor Summary
KeybindingChooserActivator()
           
 
Method Summary
static org.osgi.framework.BundleContext getBundleContext()
          Returns the bundle context.
static ConfigurationService getConfigService()
          Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static GlobalShortcutService getGlobalShortcutService()
          Returns a reference to a GlobalShortcutService implementation currently registered in the bundle context or null if no such implementation was found.
static KeybindingsService getKeybindingsService()
          Returns a reference to a KeybindingsService implementation currently registered in the bundle context or null if no such implementation was found.
static ResourceManagementService getResources()
          Returns the resources service.
 void start(org.osgi.framework.BundleContext bc)
          Starts this bundle and adds the KeybindingsConfigPanel contained in it to the configuration window obtained from the UIService.
 void stop(org.osgi.framework.BundleContext bc)
          Stops this bundles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourcesService

public static ResourceManagementService resourcesService
The service used to obtain resources.

Constructor Detail

KeybindingChooserActivator

public KeybindingChooserActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
Starts this bundle and adds the KeybindingsConfigPanel contained in it to the configuration window obtained from the UIService.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext

stop

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

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext
Throws:
Exception - if one of the operation executed in the stop method fails

getBundleContext

public static org.osgi.framework.BundleContext getBundleContext()
Returns the bundle context.

Returns:
the bundle context

getResources

public static ResourceManagementService getResources()
Returns the resources service.

Returns:
the resources service

getConfigService

public static ConfigurationService getConfigService()
Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ConfigurationService.

getKeybindingsService

public static KeybindingsService getKeybindingsService()
Returns a reference to a KeybindingsService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the KeybindingsService.

getGlobalShortcutService

public static GlobalShortcutService getGlobalShortcutService()
Returns a reference to a GlobalShortcutService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the GlobalShortcutService.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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