~tapaal-contributor/tapaal/query-export-bug-1767615

« back to all changes in this revision

Viewing changes to src/pipe/gui/AnimationSettings.java

merged in branch fixing enabled-transition-in-editor-fix-1641313
that also changes the future enabled transitions from blue to yellow

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
public class AnimationSettings{
17
17
 
18
18
        private static JDialog dialog;
19
 
        private static BlueTransitionControl blue;
 
19
        private static DelayEnabledTransitionControl delayEnabled;
20
20
        private static SimulationControl simControl;
21
21
        
22
22
        private static JPanel getContent(){
23
23
                JPanel content = new JPanel(new BorderLayout());
24
24
                 
25
 
                blue = BlueTransitionControl.getInstance();
 
25
                delayEnabled = DelayEnabledTransitionControl.getInstance();
26
26
                simControl = SimulationControl.getInstance();
27
27
                simControl.showCheckbox(true);
28
28
                
29
29
                simControl.addRandomSimulationActionListener(new ActionListener() {
30
30
                        public void actionPerformed(ActionEvent e) {
31
31
                                if(simControl.randomSimulation()){
32
 
                                        blue.randomMode.setSelected(true);
 
32
                                        delayEnabled.randomMode.setSelected(true);
33
33
                                }
34
34
                                CreateGui.getTransitionFireingComponent().updateFireButton();
35
35
                        }
36
36
                });
37
37
                
38
 
                content.add(blue, BorderLayout.NORTH);
 
38
                content.add(delayEnabled, BorderLayout.NORTH);
39
39
                content.add(simControl, BorderLayout.SOUTH);
40
40
                return content;
41
41
        }