|
|
|
|
@ -26,6 +26,7 @@ public class Importer{
|
|
|
|
|
"Text & .csv", "*.txt", "*.csv");
|
|
|
|
|
chooser.getExtensionFilters().add(filter);
|
|
|
|
|
File file = chooser.showOpenDialog(primaryStage);
|
|
|
|
|
if (file != null) {
|
|
|
|
|
if (scene == SceneCode.AIRLINE_RAW_DATA) {
|
|
|
|
|
try {
|
|
|
|
|
showSuccessAlert(parent.getCurrentDataset().importAirline(file.getPath()));
|
|
|
|
|
@ -51,7 +52,7 @@ public class Importer{
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void showSuccessAlert(String message){
|
|
|
|
|
|