X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fload%2Fxml%2FGzipFileLoader.java;h=3ebd4caae7658eca9e345ada1c25d202ef4fde53;hb=7f5ed2be62905bd37717376dc22d09e5ea7edb4d;hp=70419f36681a8076dcb65c40f8ca3eb569733c2f;hpb=140e9d165f85c3d4f0435a311e091209313faa2a;p=GpsPrune.git diff --git a/tim/prune/load/xml/GzipFileLoader.java b/tim/prune/load/xml/GzipFileLoader.java index 70419f3..3ebd4ca 100644 --- a/tim/prune/load/xml/GzipFileLoader.java +++ b/tim/prune/load/xml/GzipFileLoader.java @@ -7,8 +7,8 @@ import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import tim.prune.App; import tim.prune.I18nManager; -import tim.prune.data.Altitude; import tim.prune.data.SourceInfo; +import tim.prune.load.MediaLinkInfo; /** * Class to handle the loading of gzipped xml files @@ -48,15 +48,18 @@ public class GzipFileLoader if (handler == null) { _app.showErrorMessage("error.load.dialogtitle", "error.load.noread"); } - 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())); } } - catch (Exception e) { + catch (Exception e) + { // Error occurred, could be a non-xml file borking the parser _app.showErrorMessageNoLookup("error.load.dialogtitle", I18nManager.getText("error.load.othererror") + " " + e.getClass().getName());