Include warning text in SIM_WARN comments in CSV export
This commit is contained in:
		
							parent
							
								
									c5fc251c02
								
							
						
					
					
						commit
						8922dd945b
					
				@ -259,8 +259,12 @@ public class CSVExport {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	private static void printEvent(PrintWriter writer, FlightEvent e,
 | 
						private static void printEvent(PrintWriter writer, FlightEvent e,
 | 
				
			||||||
			String commentStarter) {
 | 
								String commentStarter) {
 | 
				
			||||||
		writer.println(prependComment(commentStarter, "Event " + e.getType().name() +
 | 
							writer.print(prependComment(commentStarter, "Event " + e.getType().name() +
 | 
				
			||||||
				" occurred at t=" + TextUtil.doubleToString(e.getTime()) + " seconds"));
 | 
									" occurred at t=" + TextUtil.doubleToString(e.getTime()) + " seconds"));
 | 
				
			||||||
 | 
							if (e.getType() == FlightEvent.Type.SIM_WARN) {
 | 
				
			||||||
 | 
								writer.print(": " + (Warning) e.getData());
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							writer.println();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	private static void writeSimulationComments(PrintWriter writer,
 | 
						private static void writeSimulationComments(PrintWriter writer,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user