Project

General

Profile

Revision 97e29f40

ID97e29f40791d3c9cc7365881c2a7d924c5f270e7

Added by Simon Tenbusch over 8 years ago

[sequencechart]
- fixed behaviour of eventLenghtMode Toggle: when switching from REAL_TIME to SIMULATION_TIME, the event length mode is switched to DURATION

View differences:

ide/org.omnetpp.sequencechart/src/org/omnetpp/sequencechart/editors/SequenceChartContributor.java
633 633
									timelineModeStatus.update();
634 634
									if(timelineMode != SequenceChart.TimelineMode.SIMULATION_TIME && timelineMode != SequenceChart.TimelineMode.REAL_TIME) {
635 635
										sequenceChart.setEventLengthMode(SequenceChart.EventLengthMode.NONE);
636
										eventLengthModeAction.update();
636 637
									}
637 638
									if (timelineMode == SequenceChart.TimelineMode.REAL_TIME) {
638 639
										sequenceChart.setEventLengthMode(SequenceChart.EventLengthMode.COMPLEXITY);
640
										eventLengthModeAction.update();
641
									}
642
									if(timelineMode == SequenceChart.TimelineMode.SIMULATION_TIME && sequenceChart.getEventLengthMode() == SequenceChart.EventLengthMode.COMPLEXITY) {
643
										sequenceChart.setEventLengthMode(SequenceChart.EventLengthMode.DURATION);
644
										eventLengthModeAction.update();
639 645
									}
640 646
									update();
641 647
								}
......
736 742
								    if (eventLengthMode == SequenceChart.EventLengthMode.DURATION){
737 743
								    	sequenceChart.setTimelineMode(SequenceChart.TimelineMode.SIMULATION_TIME);
738 744
										timelineModeStatus.update();
745
								    } else if (eventLengthMode == SequenceChart.EventLengthMode.COMPLEXITY){
746
								    	sequenceChart.setTimelineMode(SequenceChart.TimelineMode.REAL_TIME);
747
										timelineModeStatus.update();
739 748
								    }
740 749
									update();
741 750
								}

Also available in: Unified diff