From 3947458ccad86cf87ee0677669d050315a1ea880 Mon Sep 17 00:00:00 2001 From: jppetrakis <> Date: Sun, 5 Mar 2023 08:51:56 -0500 Subject: [PATCH] suggested source changes. --- .../SimulationTableToCSVFileExporter.java | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/swing/src/net/sf/openrocket/utils/SimulationTableToCSVFileExporter.java b/swing/src/net/sf/openrocket/utils/SimulationTableToCSVFileExporter.java index 8fe1668bc..fc1e253b5 100644 --- a/swing/src/net/sf/openrocket/utils/SimulationTableToCSVFileExporter.java +++ b/swing/src/net/sf/openrocket/utils/SimulationTableToCSVFileExporter.java @@ -28,6 +28,7 @@ import net.sf.openrocket.l10n.Translator; import net.sf.openrocket.startup.Application; import net.sf.openrocket.startup.Preferences; import net.sf.openrocket.unit.Value; +import net.sf.openrocket.util.TextUtil; public class SimulationTableToCSVFileExporter { private final OpenRocketDocument document; @@ -50,8 +51,8 @@ public class SimulationTableToCSVFileExporter { } /** - * Means by which the CSV export will clean up units on the values and - * describe them on the header fields instead. + * To make a lookup of table header to units. For those columns which are of type Value, the + * units will be added to the header... */ private void populateColumnNameToUnitsHashTable() { if (null == simulationTableModel) { @@ -159,9 +160,12 @@ public class SimulationTableToCSVFileExporter { ArrayList rowColumnElement = new ArrayList<>(); for (int j=1; j 0! for (int j=1; j