Export/Import in Json
This commit is contained in:
parent
a0224b9870
commit
c261652ce6
@ -1,25 +1,54 @@
|
|||||||
package tourplaner.business;
|
package tourplaner.business;
|
||||||
|
|
||||||
import tourplaner.object.Data;
|
import tourplaner.data.DbConnect;
|
||||||
|
import tourplaner.object.Log;
|
||||||
|
import tourplaner.object.Tour;
|
||||||
|
|
||||||
import java.io.FileWriter;
|
import java.io.*;
|
||||||
import java.io.IOException;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ist für das importieren und Exportieren der Daten zuständig
|
||||||
|
*/
|
||||||
public class Exporter {
|
public class Exporter {
|
||||||
|
|
||||||
private Data data;
|
private ArrayList<Tour> touren;
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
public Exporter(Data data, String path) {
|
/**
|
||||||
this.data = data;
|
* Erstellt den Exporter mit dem gegebenen Path
|
||||||
|
* @param path Gegebener Path
|
||||||
|
*/
|
||||||
|
public Exporter(String path) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Führt den Export aus -> Holt daten, erstellt file
|
||||||
|
* @throws IOException Fehler beim File erstellen
|
||||||
|
*/
|
||||||
public void doExport() throws IOException {
|
public void doExport() throws IOException {
|
||||||
JsonHelper.getJsonFromObj(data, new FileWriter(path));
|
ArrayList<Tour> data = new DbConnect().getAllTouren();
|
||||||
|
FileWriter fileWriter = new FileWriter(path + ".json");
|
||||||
|
JsonHelper.getJsonFromObj(data, fileWriter);
|
||||||
|
BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
|
||||||
|
bufferedWriter.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void doImport(){
|
/**
|
||||||
|
* Führt den Imput aus -> File holen, Daten in db erstellen
|
||||||
|
* @throws FileNotFoundException Fehler beim File öffnen
|
||||||
|
*/
|
||||||
|
public void doImport() throws FileNotFoundException {
|
||||||
|
this.touren = JsonHelper.getTourenFromJson(new FileReader(this.path));
|
||||||
|
DbConnect dbConnect = new DbConnect();
|
||||||
|
dbConnect.delAllData();
|
||||||
|
for (Tour tour:this.touren) {
|
||||||
|
dbConnect.addTour(tour);
|
||||||
|
ArrayList<Log> logs = tour.getLogs();
|
||||||
|
for (Log log:logs) {
|
||||||
|
dbConnect.addLog(tour.getName(), log);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,12 @@ package tourplaner.business;
|
|||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
|
import com.google.gson.reflect.TypeToken;
|
||||||
|
import tourplaner.object.Tour;
|
||||||
|
|
||||||
|
import java.io.FileReader;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hilfsklasse für Json (Gson)
|
* Hilfsklasse für Json (Gson)
|
||||||
@ -48,6 +52,15 @@ public class JsonHelper {
|
|||||||
new Gson().toJson(obj, writer);
|
new Gson().toJson(obj, writer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wandelt ein Json file in ein Data Objekt um
|
||||||
|
* @param reader File aus dem gelesen wird
|
||||||
|
* @return Data objekt das gelesen wurde
|
||||||
|
*/
|
||||||
|
public static ArrayList<Tour> getTourenFromJson(FileReader reader){
|
||||||
|
return new Gson().fromJson(reader, new TypeToken<ArrayList<Tour>>() {}.getType());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Json String to JsonObject
|
* Json String to JsonObject
|
||||||
* @param json Json string
|
* @param json Json string
|
||||||
|
@ -7,6 +7,7 @@ import tourplaner.object.Tour;
|
|||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@ -46,6 +47,11 @@ public class TourPlaner{
|
|||||||
return new DbConnect().editTour(oldname, tour);
|
return new DbConnect().editTour(oldname, tour);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Löscht eine Tour
|
||||||
|
* @param tourname Tourname
|
||||||
|
* @return false bei error
|
||||||
|
*/
|
||||||
public static boolean delTour(String tourname){
|
public static boolean delTour(String tourname){
|
||||||
FileHelper.delFile(new File(getImagePath(tourname)));
|
FileHelper.delFile(new File(getImagePath(tourname)));
|
||||||
FileHelper.delFile(new File(getImagePdfPath(tourname)));
|
FileHelper.delFile(new File(getImagePdfPath(tourname)));
|
||||||
@ -63,51 +69,119 @@ public class TourPlaner{
|
|||||||
return new DbConnect().addTour(newTour);
|
return new DbConnect().addTour(newTour);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holt das Gui Bild
|
||||||
|
* @param tourname Name der Tour
|
||||||
|
* @return Das Bild
|
||||||
|
* @throws IOException Error beim Bild holen
|
||||||
|
*/
|
||||||
public static Image getImage(String tourname) throws IOException {
|
public static Image getImage(String tourname) throws IOException {
|
||||||
return FileHelper.getImage(new File(getImagePath(tourname)));
|
return FileHelper.getImage(new File(getImagePath(tourname)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Path zu dem Bild für die GUI
|
||||||
|
* @param tourname Name der Tour
|
||||||
|
* @return Path zu dem Bild für die GUI
|
||||||
|
*/
|
||||||
public static String getImagePath(String tourname){
|
public static String getImagePath(String tourname){
|
||||||
return ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "path") + tourname + ".jpg";
|
return ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "path") + tourname + ".jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Path zu dem Bild für die PDF
|
||||||
|
* @param tourname Name der Tour
|
||||||
|
* @return Path zu dem Bild für die PDF
|
||||||
|
*/
|
||||||
public static String getImagePdfPath(String tourname){
|
public static String getImagePdfPath(String tourname){
|
||||||
return ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "path") + tourname + "_pdf.jpg";
|
return ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "path") + tourname + "_pdf.jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Öffnet ein Bild einer Tour
|
||||||
|
* @param tourname Tourname
|
||||||
|
*/
|
||||||
public static void openImage(String tourname){
|
public static void openImage(String tourname){
|
||||||
FileHelper.openDefault(getImagePath(tourname));
|
FileHelper.openDefault(getImagePath(tourname));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holt alle Logs einer Tour
|
||||||
|
* @param tourname Tourname
|
||||||
|
* @return Alle Logs der Tour
|
||||||
|
*/
|
||||||
public static ArrayList<Log> getLogs(String tourname){
|
public static ArrayList<Log> getLogs(String tourname){
|
||||||
return new DbConnect().getLogs(tourname);
|
return new DbConnect().getLogs(tourname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Führt einen Rport aus
|
||||||
|
* @param tourname Name der Tour die gereportet wird
|
||||||
|
*/
|
||||||
public static void doReport(String tourname){
|
public static void doReport(String tourname){
|
||||||
Reporter.createTourReport(tourname);
|
Reporter.createTourReport(tourname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holt eine Tour
|
||||||
|
* @param tourname Name der zu holenden Tour
|
||||||
|
* @return Tour die geholt werden soll
|
||||||
|
*/
|
||||||
public static Tour getTour(String tourname){
|
public static Tour getTour(String tourname){
|
||||||
return new DbConnect().getTour(tourname);
|
return new DbConnect().getTour(tourname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fügt ein Log hinzu
|
||||||
|
* @param tourname Name der Tour
|
||||||
|
* @param log Neues Log
|
||||||
|
* @return false bei error
|
||||||
|
*/
|
||||||
public static boolean addLog(String tourname, Log log){
|
public static boolean addLog(String tourname, Log log){
|
||||||
if(Double.isInfinite(log.getAvgspeed())) log.setAvgspeed(-1.0);
|
if(Double.isInfinite(log.getAvgspeed())) log.setAvgspeed(-1.0);
|
||||||
return new DbConnect().addLog(tourname, log);
|
return new DbConnect().addLog(tourname, log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Löscht ein Log
|
||||||
|
* @param tourname Name der Tour
|
||||||
|
* @param id Id des Logs
|
||||||
|
* @return false bei error
|
||||||
|
*/
|
||||||
public static boolean delLog(String tourname, String id){
|
public static boolean delLog(String tourname, String id){
|
||||||
return new DbConnect().delLog(tourname, id);
|
return new DbConnect().delLog(tourname, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Editiert ein Log
|
||||||
|
* @param tourname Name der Tour
|
||||||
|
* @param log Neues Log
|
||||||
|
* @return false bei error
|
||||||
|
*/
|
||||||
public static boolean editLog(String tourname, Log log){
|
public static boolean editLog(String tourname, Log log){
|
||||||
if(Double.isInfinite(log.getAvgspeed())) log.setAvgspeed(-1.0);
|
if(Double.isInfinite(log.getAvgspeed())) log.setAvgspeed(-1.0);
|
||||||
return new DbConnect().editLog(tourname, log);
|
return new DbConnect().editLog(tourname, log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exportiert die Daten
|
||||||
|
* @param path Path zu den Daten
|
||||||
|
* @throws IOException Fehler beim schreiben der Daten
|
||||||
|
*/
|
||||||
|
public static void exportData(String path) throws IOException {
|
||||||
|
Exporter exporter = new Exporter(path);
|
||||||
|
exporter.doExport();
|
||||||
|
FileHelper.openDefault(path);
|
||||||
|
}
|
||||||
|
|
||||||
public static String getMapJson(String start, String ziel){
|
/**
|
||||||
// TODO: 14.04.2021 Map Quest
|
* Importiert daten
|
||||||
return start + " " + ziel;
|
* @param path Path zu den Daten
|
||||||
|
* @throws FileNotFoundException File konnte nicht geöffnet werden
|
||||||
|
*/
|
||||||
|
public static void importData(String path) throws FileNotFoundException {
|
||||||
|
Exporter exporter = new Exporter(path);
|
||||||
|
exporter.doImport();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -84,6 +84,21 @@ public class DbConnect {
|
|||||||
return !result.contains(false);
|
return !result.contains(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean delAllData(){
|
||||||
|
ArrayList<Boolean> result = new ArrayList<>();
|
||||||
|
result.add(delAllLog());
|
||||||
|
result.add(delAllTour());
|
||||||
|
return !result.contains(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean delAllTour(){
|
||||||
|
return PostgresHelper.executeUpdate("DELETE FROM public.tour");
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean delAllLog(){
|
||||||
|
return PostgresHelper.executeUpdate("DELETE FROM public.log");
|
||||||
|
}
|
||||||
|
|
||||||
public ArrayList<Log> getLogs(String tourname){
|
public ArrayList<Log> getLogs(String tourname){
|
||||||
|
|
||||||
this.c = PostgresHelper.con();
|
this.c = PostgresHelper.con();
|
||||||
@ -165,7 +180,7 @@ public class DbConnect {
|
|||||||
dauer = rs.getDouble("dauer");
|
dauer = rs.getDouble("dauer");
|
||||||
strecke = rs.getDouble("strecke");
|
strecke = rs.getDouble("strecke");
|
||||||
if (!tourname.isEmpty()) {
|
if (!tourname.isEmpty()) {
|
||||||
touren.add(new Tour(tourname, dauer + "", mapjson, strecke, start, ziel));
|
touren.add(new Tour(tourname, dauer + "", mapjson, strecke, start, ziel, getLogs(tourname)));
|
||||||
}else {
|
}else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
package tourplaner.object;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
|
|
||||||
public class Data {
|
|
||||||
private ArrayList<Log> logs;
|
|
||||||
private ArrayList<Tour> touren;
|
|
||||||
|
|
||||||
public Data(ArrayList<Log> logs, ArrayList<Tour> touren){
|
|
||||||
this.logs = logs;
|
|
||||||
this.touren = touren;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<Log> getLogs() {
|
|
||||||
return logs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ArrayList<Tour> getTouren() {
|
|
||||||
return touren;
|
|
||||||
}
|
|
||||||
}
|
|
@ -21,6 +21,16 @@ public class Tour {
|
|||||||
this.log = new ArrayList<>();
|
this.log = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Tour(String name, String dauer, String mapJson, double strecke, String start, String ziel, ArrayList<Log> logs) {
|
||||||
|
this.dauer = dauer;
|
||||||
|
this.mapJson = mapJson;
|
||||||
|
this.strecke = strecke;
|
||||||
|
this.name = name;
|
||||||
|
this.start = start;
|
||||||
|
this.ziel = ziel;
|
||||||
|
this.log = logs;
|
||||||
|
}
|
||||||
|
|
||||||
public void setTour(Tour tour){
|
public void setTour(Tour tour){
|
||||||
this.dauer = tour.getDauer();
|
this.dauer = tour.getDauer();
|
||||||
this.mapJson = tour.getMapJson();
|
this.mapJson = tour.getMapJson();
|
||||||
|
@ -50,6 +50,8 @@
|
|||||||
</Menu>
|
</Menu>
|
||||||
<Menu mnemonicParsing="false" text="Bearbeiten">
|
<Menu mnemonicParsing="false" text="Bearbeiten">
|
||||||
<items>
|
<items>
|
||||||
|
<MenuItem mnemonicParsing="false" onAction="#importBtn" text="Import" />
|
||||||
|
<MenuItem mnemonicParsing="false" onAction="#exportBtn" text="Export" />
|
||||||
<MenuItem mnemonicParsing="false" onAction="#nimpButton" text="Keine Funktion" />
|
<MenuItem mnemonicParsing="false" onAction="#nimpButton" text="Keine Funktion" />
|
||||||
</items>
|
</items>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
@ -11,6 +11,7 @@ import javafx.stage.Stage;
|
|||||||
import javafx.stage.WindowEvent;
|
import javafx.stage.WindowEvent;
|
||||||
import tourplaner.business.ConfigHelper;
|
import tourplaner.business.ConfigHelper;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.io.StringWriter;
|
import java.io.StringWriter;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
@ -229,4 +230,24 @@ public class AlertHelper {
|
|||||||
stage.showAndWait();
|
stage.showAndWait();
|
||||||
return selectedDate.get();
|
return selectedDate.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* File Auswahl
|
||||||
|
* @param btn Text des Speichern/Öffnen Btn
|
||||||
|
* @return String des Files, bei error null
|
||||||
|
*/
|
||||||
|
public static String fileChooser(String btn){
|
||||||
|
// JFileChooser-Objekt erstellen
|
||||||
|
JFileChooser chooser = new JFileChooser();
|
||||||
|
// Dialog zum Oeffnen von Dateien anzeigen
|
||||||
|
int rueckgabeWert = chooser.showDialog(null, btn);
|
||||||
|
|
||||||
|
/* Abfrage, ob auf "Öffnen" geklickt wurde */
|
||||||
|
if(rueckgabeWert == JFileChooser.APPROVE_OPTION)
|
||||||
|
{
|
||||||
|
return chooser.getSelectedFile().getAbsolutePath();
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -98,6 +98,7 @@ public class TourplanerController implements Initializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void syncTourNamen(){
|
private void syncTourNamen(){
|
||||||
|
TourListView.getItems().removeIf(s -> true);
|
||||||
TourListView.setItems(this.viewModel.getTourNamen());
|
TourListView.setItems(this.viewModel.getTourNamen());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,12 +217,28 @@ public class TourplanerController implements Initializable {
|
|||||||
TourListView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
|
TourListView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
|
||||||
TourListView.setOrientation(Orientation.VERTICAL);
|
TourListView.setOrientation(Orientation.VERTICAL);
|
||||||
syncTourNamen();
|
syncTourNamen();
|
||||||
|
deselectAll();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void deselectAll(){
|
||||||
//Tabs zu Tour -> rechts oben
|
//Tabs zu Tour -> rechts oben
|
||||||
beschreibungTableView.setPlaceholder(new Label( ConfigHelper.getLangIniString("keinetourselected")));
|
beschreibungTableView.setPlaceholder(new Label( ConfigHelper.getLangIniString("keinetourselected")));
|
||||||
titleTextView.setText( ConfigHelper.getLangIniString("keinetourselected"));
|
titleTextView.setText( ConfigHelper.getLangIniString("keinetourselected"));
|
||||||
//Log -> rechts unten
|
//Log -> rechts unten
|
||||||
logTableView.setPlaceholder(new Label( ConfigHelper.getLangIniString("keinetourselected")));
|
logTableView.setPlaceholder(new Label( ConfigHelper.getLangIniString("keinetourselected")));
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public void exportBtn(){
|
||||||
|
this.viewModel.exportData();
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
public void importBtn(){
|
||||||
|
deselectAll();
|
||||||
|
this.viewModel.importData();
|
||||||
|
syncTourNamen();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3,6 +3,7 @@ package tourplaner.viewmodels;
|
|||||||
import javafx.collections.FXCollections;
|
import javafx.collections.FXCollections;
|
||||||
import javafx.collections.ObservableList;
|
import javafx.collections.ObservableList;
|
||||||
import javafx.scene.image.Image;
|
import javafx.scene.image.Image;
|
||||||
|
import tourplaner.business.Exporter;
|
||||||
import tourplaner.business.TourPlaner;
|
import tourplaner.business.TourPlaner;
|
||||||
import tourplaner.ui.AlertHelper;
|
import tourplaner.ui.AlertHelper;
|
||||||
import tourplaner.business.ConfigHelper;
|
import tourplaner.business.ConfigHelper;
|
||||||
@ -11,6 +12,7 @@ import tourplaner.object.Log;
|
|||||||
import tourplaner.object.Tour;
|
import tourplaner.object.Tour;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
|
import java.io.FileNotFoundException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
@ -23,7 +25,7 @@ import java.util.concurrent.atomic.AtomicReference;
|
|||||||
public class ViewModel {
|
public class ViewModel {
|
||||||
//Tour
|
//Tour
|
||||||
private final ObservableList<Tour> tourData = FXCollections.observableArrayList();
|
private final ObservableList<Tour> tourData = FXCollections.observableArrayList();
|
||||||
private final ObservableList<String> tourNamen = FXCollections.observableArrayList();
|
private ObservableList<String> tourNamen = FXCollections.observableArrayList();
|
||||||
private Tour selectedTour;
|
private Tour selectedTour;
|
||||||
private String neueTourName, neueTourStart, neueTourZiel, neueBemerkung;
|
private String neueTourName, neueTourStart, neueTourZiel, neueBemerkung;
|
||||||
//Log
|
//Log
|
||||||
@ -582,4 +584,37 @@ public class ViewModel {
|
|||||||
TourPlaner.doReport(this.selectedTour.getName());
|
TourPlaner.doReport(this.selectedTour.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exportiert alle daten in ein File das hier gewählt wird
|
||||||
|
*/
|
||||||
|
public void exportData(){
|
||||||
|
String file = AlertHelper.fileChooser("Exportiere");
|
||||||
|
System.out.println("EXPORT: " + file);
|
||||||
|
if(file != null){
|
||||||
|
try {
|
||||||
|
new Exporter(file).doExport();
|
||||||
|
} catch (IOException e) {
|
||||||
|
AlertHelper.error("Error", "Export Error", "Fehler beim Exportieren");
|
||||||
|
LogHelper.error(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Importiert alle daten von einem File das hier gewählt wird
|
||||||
|
*/
|
||||||
|
public void importData(){
|
||||||
|
String file = AlertHelper.fileChooser("Importiere");
|
||||||
|
System.out.println("IMPORT: " + file);
|
||||||
|
if (file != null){
|
||||||
|
try {
|
||||||
|
this.tourNamen = FXCollections.observableArrayList();
|
||||||
|
new Exporter(file).doImport();
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
AlertHelper.error("Error", "Import Error", "Fehler beim Importieren");
|
||||||
|
LogHelper.error(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user