src/solaris/classes/sun/awt/X11/XSystemTrayPeer.java

Print this page

        

@@ -56,12 +56,14 @@
         selection.addSelectionListener(this);
 
         long selection_owner = selection.getOwner(SCREEN);
         available = (selection_owner != XConstants.None);
 
+        if (log.isLoggable(PlatformLogger.FINE)) {
         log.fine(" check if system tray is available. selection owner: " + selection_owner);
     }
+    }
 
     public void ownerChanged(int screen, XMSelection sel, long newOwner, long data, long timestamp) {
         if (screen != SCREEN) {
             return;
         }

@@ -104,11 +106,13 @@
     // ***********************************************************************
 
     void addTrayIcon(XTrayIconPeer tiPeer) throws AWTException {
         long selection_owner = selection.getOwner(SCREEN);
 
+        if (log.isLoggable(PlatformLogger.FINE)) {
         log.fine(" send SYSTEM_TRAY_REQUEST_DOCK message to owner: " + selection_owner);
+        }
 
         if (selection_owner == XConstants.None) {
             throw new AWTException("TrayIcon couldn't be displayed.");
         }