| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.fest.swing.core; |
| 17 |
|
|
| 18 |
|
import static org.fest.swing.edt.GuiActionRunner.execute; |
| 19 |
|
|
| 20 |
|
import java.awt.Window; |
| 21 |
|
|
| 22 |
|
import org.fest.swing.annotation.RunsInEDT; |
| 23 |
|
import org.fest.swing.edt.GuiTask; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
@link |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
@author |
| 31 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 32 |
|
class ActivateWindowTask { |
| 33 |
|
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
2
|
@RunsInEDT... |
| 35 |
|
static void activateWindow(final Window w) { |
| 36 |
2
|
execute(new GuiTask() { |
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 37 |
2
|
protected void executeInEDT() {... |
| 38 |
2
|
w.toFront(); |
| 39 |
2
|
w.requestFocusInWindow(); |
| 40 |
|
} |
| 41 |
|
}); |
| 42 |
|
} |
| 43 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 44 |
|
private ActivateWindowTask() {}... |
| 45 |
|
} |