Commit 97e29f40 authored by Simon Tenbusch's avatar Simon Tenbusch

[sequencechart]

- fixed behaviour of eventLenghtMode Toggle: when switching from REAL_TIME to SIMULATION_TIME, the event length mode is switched to DURATION
parent a2c79680
......@@ -633,9 +633,15 @@ public class SequenceChartContributor extends EditorActionBarContributor impleme
timelineModeStatus.update();
if(timelineMode != SequenceChart.TimelineMode.SIMULATION_TIME && timelineMode != SequenceChart.TimelineMode.REAL_TIME) {
sequenceChart.setEventLengthMode(SequenceChart.EventLengthMode.NONE);
eventLengthModeAction.update();
}
if (timelineMode == SequenceChart.TimelineMode.REAL_TIME) {
sequenceChart.setEventLengthMode(SequenceChart.EventLengthMode.COMPLEXITY);
eventLengthModeAction.update();
}
if(timelineMode == SequenceChart.TimelineMode.SIMULATION_TIME && sequenceChart.getEventLengthMode() == SequenceChart.EventLengthMode.COMPLEXITY) {
sequenceChart.setEventLengthMode(SequenceChart.EventLengthMode.DURATION);
eventLengthModeAction.update();
}
update();
}
......@@ -736,6 +742,9 @@ public class SequenceChartContributor extends EditorActionBarContributor impleme
if (eventLengthMode == SequenceChart.EventLengthMode.DURATION){
sequenceChart.setTimelineMode(SequenceChart.TimelineMode.SIMULATION_TIME);
timelineModeStatus.update();
} else if (eventLengthMode == SequenceChart.EventLengthMode.COMPLEXITY){
sequenceChart.setTimelineMode(SequenceChart.TimelineMode.REAL_TIME);
timelineModeStatus.update();
}
update();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment