X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;ds=sidebyside;f=tim%2Fprune%2Fload%2Fxml%2FZipFileLoader.java;h=dfeec526cb0ddfe190d76621cf7ac1747ea41130;hb=1ee49ae3c8ef3aa2e63eadd458531e5f8bd4f92c;hp=ba9407c8063c9ea9beb44c213c3da53a099af6dd;hpb=112bb0c9b46894adca9a33ed8c99ea712b253185;p=GpsPrune.git diff --git a/tim/prune/load/xml/ZipFileLoader.java b/tim/prune/load/xml/ZipFileLoader.java index ba9407c..dfeec52 100644 --- a/tim/prune/load/xml/ZipFileLoader.java +++ b/tim/prune/load/xml/ZipFileLoader.java @@ -12,6 +12,7 @@ import javax.xml.parsers.SAXParserFactory; import tim.prune.App; import tim.prune.data.Altitude; +import tim.prune.data.SourceInfo; /** * Class to handle the loading of zipped xml files @@ -63,8 +64,10 @@ public class ZipFileLoader } 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, inFile.getName()); + Altitude.Format.METRES, sourceInfo); xmlFound = true; } } @@ -110,7 +113,7 @@ public class ZipFileLoader else { // Send back to app _app.informDataLoaded(handler.getFieldArray(), handler.getDataArray(), - Altitude.Format.METRES, "gpsies"); + Altitude.Format.METRES, new SourceInfo("gpsies", SourceInfo.FILE_TYPE.GPSIES)); xmlFound = true; } }