import javax.xml.parsers.SAXParserFactory;
import tim.prune.App;
-import tim.prune.data.Altitude;
import tim.prune.data.SourceInfo;
+import tim.prune.load.MediaLinkInfo;
/**
* Class to handle the loading of zipped xml files
if (handler == null) {
_app.showErrorMessage("error.load.dialogtitle", "error.load.othererror");
}
- else {
+ else
+ {
// Send back to app
SourceInfo sourceInfo = new SourceInfo(inFile,
(handler instanceof GpxHandler?SourceInfo.FILE_TYPE.GPX:SourceInfo.FILE_TYPE.KML));
_app.informDataLoaded(handler.getFieldArray(), handler.getDataArray(),
- Altitude.Format.METRES, sourceInfo, handler.getTrackNameList());
+ null, sourceInfo, handler.getTrackNameList(),
+ new MediaLinkInfo(inFile, handler.getLinkArray()));
xmlFound = true;
}
}
}
}
catch (Exception e) {
- System.err.println("ZipFile Error: " + e.getClass().getName() + " -message= " + e.getMessage());
+ _app.showErrorMessageNoLookup("error.load.dialogtitle", e.getClass().getName() + "\n - " + e.getMessage());
}
}
if (handler == null) {
_app.showErrorMessage("error.load.dialogtitle", "error.load.othererror");
}
- else {
+ else
+ {
// Send back to app
_app.informDataLoaded(handler.getFieldArray(), handler.getDataArray(),
- Altitude.Format.METRES, new SourceInfo("gpsies", SourceInfo.FILE_TYPE.GPSIES),
+ new SourceInfo("gpsies", SourceInfo.FILE_TYPE.GPSIES),
handler.getTrackNameList());
xmlFound = true;
}