[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java

yanas at dev.java.net yanas at dev.java.net
Fri Apr 13 15:41:12 CEST 2007


User: yanas   
Date: 2007-04-13 13:41:12+0000
Log:
 ambiguous class problem (jdic and java6) resolved

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/systray/jdic/
=============================================================================

File [changed]: SystrayServiceJdicImpl.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/systray/jdic/SystrayServiceJdicImpl.java?r1=1.1&r2=1.2
Delta lines:  +16 -13
---------------------
--- SystrayServiceJdicImpl.java	2007-04-11 14:12:48+0000	1.1
+++ SystrayServiceJdicImpl.java	2007-04-13 13:41:09+0000	1.2
@@ -26,6 +26,9 @@
 import net.java.sip.communicator.util.*;
 
 import org.jdesktop.jdic.tray.*;
+import org.jdesktop.jdic.tray.SystemTray;
+import org.jdesktop.jdic.tray.TrayIcon;
+
 import org.osgi.framework.*;
 
 /**
@@ -136,14 +139,18 @@
         {
             public void actionPerformed(ActionEvent e) 
             {
-                if(uiService.isVisible())
-                {
-                    uiService.setVisible(false);
-                }
-                else
-                {
-                    uiService.setVisible(true);
-                }
+                boolean isVisible;
+                
+                isVisible = ! uiService.isVisible();
+                
+                uiService.setVisible(isVisible);
+                
+                ConfigurationService configService
+                    = SystrayActivator.getConfigurationService();
+                
+                configService.setProperty(
+                        "net.java.sip.communicator.impl.systray.showApplication",
+                        new Boolean(isVisible));
             }
         });
         
@@ -353,12 +360,8 @@
     public void saveStatusInformation(ProtocolProviderService protocolProvider,
             String statusName)
     {
-        ServiceReference configReference = SystrayActivator.bundleContext
-            .getServiceReference(ConfigurationService.class.getName());
-    
         ConfigurationService configService
-            = (ConfigurationService) SystrayActivator.bundleContext
-                .getService(configReference);
+            = SystrayActivator.getConfigurationService();
     
         if(configService != null)
         {




---------------------------------------------------------------------
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