1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.util; |
22 |
|
|
23 |
|
import java.awt.event.MouseEvent; |
24 |
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 5 |
Complexity Density: 0.45 |
|
25 |
|
public class ShortcutKeyMaskExWrapper |
26 |
|
{ |
27 |
|
|
28 |
|
private static final Float specversion; |
29 |
|
|
30 |
|
private static final float modern; |
31 |
|
|
32 |
|
public static final int SHIFT_DOWN_MASK; |
33 |
|
|
34 |
|
public static final int ALT_DOWN_MASK; |
35 |
|
|
36 |
|
private static final ShortcutKeyMaskExWrapperI wrapper; |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 3 |
Complexity Density: 0.33 |
|
38 |
0 |
static... |
39 |
|
{ |
40 |
0 |
specversion = Platform.isJS() ? Float.valueOf(8) |
41 |
|
: Float.parseFloat( |
42 |
|
System.getProperty("java.specification.version")); |
43 |
0 |
modern = 11; |
44 |
|
|
45 |
0 |
if (specversion >= modern) |
46 |
|
{ |
47 |
0 |
wrapper = new jalview.util.ShortcutKeyMaskExWrapper11(); |
48 |
0 |
SHIFT_DOWN_MASK = jalview.util.ShortcutKeyMaskExWrapper11.SHIFT_DOWN_MASK; |
49 |
0 |
ALT_DOWN_MASK = jalview.util.ShortcutKeyMaskExWrapper11.ALT_DOWN_MASK; |
50 |
|
} |
51 |
|
else |
52 |
|
{ |
53 |
0 |
wrapper = new jalview.util.ShortcutKeyMaskExWrapper8(); |
54 |
0 |
SHIFT_DOWN_MASK = jalview.util.ShortcutKeyMaskExWrapper8.SHIFT_DOWN_MASK; |
55 |
0 |
ALT_DOWN_MASK = jalview.util.ShortcutKeyMaskExWrapper8.ALT_DOWN_MASK; |
56 |
|
} |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public static int getMenuShortcutKeyMaskEx()... |
60 |
|
{ |
61 |
0 |
return wrapper.getMenuShortcutKeyMaskEx(); |
62 |
|
} |
63 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
64 |
0 |
public static int getModifiersEx(MouseEvent e)... |
65 |
|
{ |
66 |
0 |
return wrapper.getModifiersEx(e); |
67 |
|
} |
68 |
|
|
69 |
|
} |