1 | package com.jsql.view.swing.menubar; | |
2 | ||
3 | import com.jsql.view.swing.util.UiUtil; | |
4 | import org.apache.commons.lang3.SystemUtils; | |
5 | ||
6 | import javax.swing.*; | |
7 | ||
8 | public class JMenuItemWithMargin extends JMenuItem { | |
9 | ||
10 | public JMenuItemWithMargin() { | |
11 |
1
1. <init> : removed call to com/jsql/view/swing/menubar/JMenuItemWithMargin::setMargin → NO_COVERAGE |
this.setMargin(); |
12 | } | |
13 | ||
14 | public JMenuItemWithMargin(String valueByKey, char c) { | |
15 | | |
16 | super(valueByKey, c); | |
17 |
1
1. <init> : removed call to com/jsql/view/swing/menubar/JMenuItemWithMargin::setMargin → NO_COVERAGE |
this.setMargin(); |
18 | } | |
19 | | |
20 | public JMenuItemWithMargin(String valueByKey) { | |
21 | | |
22 | super(valueByKey); | |
23 |
1
1. <init> : removed call to com/jsql/view/swing/menubar/JMenuItemWithMargin::setMargin → NO_COVERAGE |
this.setMargin(); |
24 | } | |
25 | ||
26 | public JMenuItemWithMargin(Action action) { | |
27 | ||
28 | super(action); | |
29 |
1
1. <init> : removed call to com/jsql/view/swing/menubar/JMenuItemWithMargin::setMargin → NO_COVERAGE |
this.setMargin(); |
30 | } | |
31 | ||
32 | private void setMargin() { | |
33 | | |
34 | // Menu item on Mac has enough margin | |
35 |
1
1. setMargin : negated conditional → NO_COVERAGE |
if (!SystemUtils.IS_OS_MAC) { |
36 |
1
1. setMargin : removed call to com/jsql/view/swing/menubar/JMenuItemWithMargin::setIcon → NO_COVERAGE |
this.setIcon(UiUtil.ICON_EMPTY); |
37 | } | |
38 | } | |
39 | } | |
Mutations | ||
11 |
1.1 |
|
17 |
1.1 |
|
23 |
1.1 |
|
29 |
1.1 |
|
35 |
1.1 |
|
36 |
1.1 |