| 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 |
|
|
| 11 |
|
@link |
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
@see |
| 17 |
|
@see |
| 18 |
|
|
| 19 |
|
@author |
| 20 |
|
@author |
| 21 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 22 |
|
final class JInternalFrameDesktopPaneQuery { |
| 23 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 24 |
2
|
@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 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 31 |
|
private JInternalFrameDesktopPaneQuery() {}... |
| 32 |
|
} |