[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccRegWizzActivator.java

yanas at dev.java.net yanas at dev.java.net
Thu Apr 26 23:19:01 CEST 2007


User: yanas   
Date: 2007-04-26 21:19:01+0000
Log:
 remove account wizards from the gui when the corresponding bundle is stopped

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/plugin/msnaccregwizz/
================================================================================

File [changed]: MsnAccRegWizzActivator.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/plugin/msnaccregwizz/MsnAccRegWizzActivator.java?r1=1.1&r2=1.2
Delta lines:  +9 -5
-------------------
--- MsnAccRegWizzActivator.java	2006-11-03 11:20:03+0000	1.1
+++ MsnAccRegWizzActivator.java	2007-04-26 21:18:58+0000	1.2
@@ -26,6 +26,10 @@
 
     private static ConfigurationService configService;
 
+    private static AccountRegistrationWizardContainer wizardContainer;
+    
+    private static MsnAccountRegistrationWizard msnWizard;
+    
     /**
      * Starts this bundle.
      * @param bc BundleContext
@@ -41,16 +45,16 @@
         UIService uiService
             = (UIService) bundleContext.getService(uiServiceRef);
 
-        AccountRegistrationWizardContainer wizardContainer
-            = uiService.getAccountRegWizardContainer();
+        wizardContainer = uiService.getAccountRegWizardContainer();
 
-        MsnAccountRegistrationWizard msnWizard
-            = new MsnAccountRegistrationWizard(wizardContainer);
+        msnWizard = new MsnAccountRegistrationWizard(wizardContainer);
 
         wizardContainer.addAccountRegistrationWizard(msnWizard);
     }
 
-    public void stop(BundleContext bundleContext) throws Exception {
+    public void stop(BundleContext bundleContext) throws Exception
+    {
+        wizardContainer.removeAccountRegistrationWizard(msnWizard);
     }
 
     /**




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list