Clover Coverage Report - FEST Swing 1.2
Coverage timestamp: Tue Jun 1 2010 15:19:25 PDT
../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
4   32   2   4
2   13   0.5   1
1     2  
1    
12.5% of code in this file is excluded from these metrics.
 
  JInternalFrameDesktopPaneQuery       Line # 22 4 12.5% 2 0 100% 1.0
 
No Tests
 
1    package org.fest.swing.hierarchy;
2   
3    import javax.swing.JDesktopPane;
4    import javax.swing.JInternalFrame;
5    import javax.swing.JInternalFrame.JDesktopIcon;
6   
7    import org.fest.swing.annotation.RunsInCurrentThread;
8   
9    /**
10    * Understands an action, executed in the event dispatch thread, that returns the desktop the given
11    * <code>{@link JInternalFrame}</code> belongs to when iconified.
12    * <p>
13    * <b>Note:</b> Methods in this class are <b>not</b> executed in the event dispatch thread (EDT.) Clients are
14    * responsible for invoking them in the EDT.
15    * </p>
16    * @see JInternalFrame#getDesktopIcon()
17    * @see JDesktopIcon#getDesktopPane()
18    *
19    * @author Alex Ruiz
20    * @author Yvonne Wang
21    */
 
22    final class JInternalFrameDesktopPaneQuery {
23   
 
24  2 toggle @RunsInCurrentThread
25    static JDesktopPane desktopPaneOf(final JInternalFrame internalFrame) {
26  2 JDesktopIcon icon = internalFrame.getDesktopIcon();
27  1 if (icon != null) return icon.getDesktopPane();
28  1 return null;
29    }
30   
 
31    toggle private JInternalFrameDesktopPaneQuery() {}
32    }