Merge branch 'issue-887' into unstable
Select thrustcurves from issue-887 branch
This commit is contained in:
commit
734a0ffc1f
Binary file not shown.
@ -2,6 +2,8 @@ package net.sf.openrocket.thrustcurve;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.xml.sax.InputSource;
|
||||
@ -172,6 +174,12 @@ public class SearchResponseParser implements ElementHandler {
|
||||
case availability:
|
||||
currentMotor.setAvailability(content);
|
||||
break;
|
||||
case updated_on:
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy");
|
||||
try {
|
||||
currentMotor.setUpdated_on(formatter.parse(content));
|
||||
} catch (ParseException ignored) { }
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -292,7 +292,7 @@ public class TCMotor implements Cloneable {
|
||||
+ ", info_url=" + info_url + ", tot_mass_g=" + tot_mass_g
|
||||
+ ", prop_mass_g=" + prop_mass_g + ", delays=" + delays
|
||||
+ ", case_info=" + case_info + ", prop_info=" + prop_info
|
||||
+ ", updated_on=" + updated_on + "]";
|
||||
+ ", updated_on=" + updated_on + ", availability=" + availability + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user