Package: BlockBossAction

BlockBossAction

nameinstructionbranchcomplexitylinemethod
BlockBossAction()
M: 0 C: 5
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
BlockBossAction(String)
M: 3 C: 7
70%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 1 C: 3
75%
M: 0 C: 1
100%
actionPerformed(ActionEvent)
M: 0 C: 8
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%

Coverage

1: package jmri.jmrit.blockboss;
2:
3: import java.awt.event.ActionEvent;
4: import javax.swing.AbstractAction;
5: import javax.swing.JFrame;
6:
7: /**
8: * Swing action to create and show a "Simple Signal Logic" GUI panel.
9: *
10: * @author Bob Jacobsen Copyright (C) 2003
11: */
12: public class BlockBossAction extends AbstractAction {
13:
14: public BlockBossAction(String s) {
15: super(s);
16: // disable ourself if there is no primary Signal Head manager available
17:• if (jmri.InstanceManager.getNullableDefault(jmri.SignalHeadManager.class) == null) {
18: setEnabled(false);
19: }
20: }
21:
22: public BlockBossAction() {
23: this(Bundle.getMessage("Simple_Signal_Logic"));
24: }
25:
26: @Override
27: public void actionPerformed(ActionEvent e) {
28:
29: // create the frame
30: JFrame f = new BlockBossFrame();
31: f.setVisible(true);
32: }
33:
34: }