X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fload%2Fxml%2FZipFileLoader.java;h=88a3d87706943ad1a5ad17b8d3fbe913e35d3ba9;hb=649c5da6ee1bbc590699e11a92316ece2ea8512d;hp=df60576a057617eccae0652889afe6ce2b6ad2d8;hpb=140e9d165f85c3d4f0435a311e091209313faa2a;p=GpsPrune.git diff --git a/tim/prune/load/xml/ZipFileLoader.java b/tim/prune/load/xml/ZipFileLoader.java index df60576..88a3d87 100644 --- a/tim/prune/load/xml/ZipFileLoader.java +++ b/tim/prune/load/xml/ZipFileLoader.java @@ -13,6 +13,7 @@ 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 @@ -62,12 +63,14 @@ public class ZipFileLoader 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()); + Altitude.Format.METRES, sourceInfo, handler.getTrackNameList(), + new MediaLinkInfo(inFile, handler.getLinkArray())); xmlFound = true; } } @@ -110,7 +113,8 @@ public class ZipFileLoader 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),