aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/aimaccregwizz
diff options
context:
space:
mode:
authorYana Stamcheva <yana@jitsi.org>2007-04-26 21:18:58 +0000
committerYana Stamcheva <yana@jitsi.org>2007-04-26 21:18:58 +0000
commit8bfa6d8d0eb68411048a5181f5c99df1d9a45137 (patch)
tree5ef8eb342ec773a0c63ed7c8d5dc515079215182 /src/net/java/sip/communicator/plugin/aimaccregwizz
parent4959a74d88a1d7749020b44ea817ecbd81274d4a (diff)
downloadjitsi-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/aimaccregwizz')
-rw-r--r--src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java
index 85786f0..db6240b 100644
--- a/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java
+++ b/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java
@@ -27,6 +27,10 @@ public class AimAccRegWizzActivator implements BundleActivator {
private static BrowserLauncherService browserLauncherService;
+ private static UIService uiService;
+
+ private static AimAccountRegistrationWizard aimWizard;
+
/**
* Starts this bundle.
*/
@@ -37,19 +41,20 @@ public class AimAccRegWizzActivator implements BundleActivator {
ServiceReference uiServiceRef = bundleContext
.getServiceReference(UIService.class.getName());
- UIService uiService
- = (UIService) bundleContext.getService(uiServiceRef);
+ uiService = (UIService) bundleContext.getService(uiServiceRef);
AccountRegistrationWizardContainer wizardContainer
= uiService.getAccountRegWizardContainer();
- AimAccountRegistrationWizard aimWizard
- = new AimAccountRegistrationWizard(wizardContainer);
+ aimWizard = new AimAccountRegistrationWizard(wizardContainer);
wizardContainer.addAccountRegistrationWizard(aimWizard);
}
- public void stop(BundleContext bundleContext) throws Exception {
+ public void stop(BundleContext bundleContext) throws Exception
+ {
+ uiService.getAccountRegWizardContainer()
+ .removeAccountRegistrationWizard(aimWizard);
}
/**