diff options
author | Yana Stamcheva <yana@jitsi.org> | 2007-04-26 21:18:58 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2007-04-26 21:18:58 +0000 |
commit | 8bfa6d8d0eb68411048a5181f5c99df1d9a45137 (patch) | |
tree | 5ef8eb342ec773a0c63ed7c8d5dc515079215182 /src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java | |
parent | 4959a74d88a1d7749020b44ea817ecbd81274d4a (diff) | |
download | jitsi-8bfa6d8d0eb68411048a5181f5c99df1d9a45137.zip jitsi-8bfa6d8d0eb68411048a5181f5c99df1d9a45137.tar.gz jitsi-8bfa6d8d0eb68411048a5181f5c99df1d9a45137.tar.bz2 |
remove account wizards from the gui when the corresponding bundle is stopped
Diffstat (limited to 'src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java')
-rw-r--r-- | src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java index 0d27f41..1e8f924 100644 --- a/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java +++ b/src/net/java/sip/communicator/plugin/gibberishaccregwizz/GibberishAccRegWizzActivator.java @@ -7,6 +7,7 @@ package net.java.sip.communicator.plugin.gibberishaccregwizz; import org.osgi.framework.*; + import net.java.sip.communicator.service.configuration.*; import net.java.sip.communicator.service.gui.*; import net.java.sip.communicator.service.protocol.*; @@ -32,6 +33,10 @@ public class GibberishAccRegWizzActivator * A currently valid reference to the configuration service. */ private static ConfigurationService configService; + + private static AccountRegistrationWizardContainer wizardContainer; + + private static GibberishAccountRegistrationWizard gibberishWizard; /** * Starts this bundle. @@ -46,13 +51,11 @@ public class GibberishAccRegWizzActivator ServiceReference uiServiceRef = bundleContext .getServiceReference(UIService.class.getName()); - UIService uiService - = (UIService) bundleContext.getService(uiServiceRef); + UIService uiService = (UIService) bundleContext.getService(uiServiceRef); - AccountRegistrationWizardContainer wizardContainer - = uiService.getAccountRegWizardContainer(); + wizardContainer = uiService.getAccountRegWizardContainer(); - GibberishAccountRegistrationWizard gibberishWizard + gibberishWizard = new GibberishAccountRegistrationWizard(wizardContainer); wizardContainer.addAccountRegistrationWizard(gibberishWizard); @@ -66,11 +69,11 @@ public class GibberishAccRegWizzActivator * * @param context The execution context of the bundle being stopped. */ - public void stop(BundleContext context) + public void stop(BundleContext bundleContext) throws Exception { - + wizardContainer.removeAccountRegistrationWizard(gibberishWizard); } - + /** * Returns the <tt>ProtocolProviderFactory</tt> for the Gibberish protocol. * @return the <tt>ProtocolProviderFactory</tt> for the Gibberish protocol |