Skip to content

Commit

Permalink
ide: fix #932: Use our own BigDecimal in Sequence Chart.
Browse files Browse the repository at this point in the history
It caused an exception when the filter button was clicked on the seqchart window.
  • Loading branch information
rhornig committed Jul 29, 2022
1 parent 83959c1 commit fb11f60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -66,6 +65,7 @@
import org.omnetpp.common.ui.GenericTreeLabelProvider;
import org.omnetpp.common.ui.GenericTreeNode;
import org.omnetpp.common.util.StringUtils;
import org.omnetpp.common.util.BigDecimal;
import org.omnetpp.common.util.UIUtils;
import org.omnetpp.eventlog.EventLogEntry;
import org.omnetpp.eventlog.IEventLog;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ private void redrawSequenceChart() {
}

private void setNonLinearMinimumTimelineCoordinateDeltaText() {
java.math.BigDecimal value = new java.math.BigDecimal(100 * getNonLinearMinimumTimelineCoordinateDelta());
BigDecimal value = new BigDecimal(100 * getNonLinearMinimumTimelineCoordinateDelta());
value = value.round(new MathContext(3));
minimumLabel.setText("Relative minimum distance to maximum distance: " + value + "%");
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package org.omnetpp.sequencechart.widgets;

import java.math.BigDecimal;

import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.omnetpp.common.util.BigDecimal;
import org.omnetpp.common.eventlog.EventLogInput;
import org.omnetpp.common.eventlog.ModuleTreeItem;
import org.omnetpp.eventlog.IEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.omnetpp.sequencechart.widgets;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;

Expand All @@ -12,6 +11,7 @@
import org.omnetpp.common.eventlog.EventLogInput;
import org.omnetpp.common.eventlog.ModuleTreeItem;
import org.omnetpp.common.util.Pair;
import org.omnetpp.common.util.BigDecimal;
import org.omnetpp.eventlog.FilteredMessageDependency;
import org.omnetpp.eventlog.IEvent;
import org.omnetpp.eventlog.IEventLog;
Expand Down

0 comments on commit fb11f60

Please sign in to comment.