Changeset 1677 in josm for trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
- Timestamp:
- 2009-06-17T10:04:22+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/GpxExportAction.java
r1676 r1677 107 107 p.add(warning, GBC.eol().fill(GBC.HORIZONTAL).insets(15,0,0,0)); 108 108 addDependencies(author, authorName, email, copyright, predefined, copyrightYear, nameLabel, emailLabel, copyrightLabel, copyrightYearLabel, warning); 109 109 110 110 // if the user name is not the email address, but the osm user name 111 111 // move it from the email textfield to the author textfield … … 119 119 p.add(keywords, GBC.eop().fill(GBC.HORIZONTAL)); 120 120 121 int answer = new ExtendedDialog(Main.parent, 122 tr("Export options"), 121 int answer = new ExtendedDialog(Main.parent, 122 tr("Export options"), 123 123 p, 124 new String[] {tr("Export and Save"), tr("Cancel")}, 125 new String[] {"exportgpx.png", "cancel.png"}).getValue(); 124 new String[] {tr("Export and Save"), tr("Cancel")}, 125 new String[] {"exportgpx.png", "cancel.png"}).getValue(); 126 126 if (answer != 1) 127 127 return; … … 140 140 else 141 141 gpxData = OsmDataLayer.toGpxData(Main.ds, file); 142 142 143 143 // add author and copyright details to the gpx data 144 144 if(author.isSelected()) { … … 151 151 if(copyrightYear.getText().length() > 0) gpxData.attr.put(GpxData.META_COPYRIGHT_YEAR, copyrightYear.getText()); 152 152 } 153 153 154 154 // add the description to the gpx data 155 155 if(desc.getText().length() > 0) gpxData.attr.put(GpxData.META_DESC, desc.getText()); 156 156 157 157 // add keywords to the gpx data 158 158 if(keywords.getText().length() > 0) gpxData.attr.put(GpxData.META_KEYWORDS, keywords.getText()); 159 159 160 160 try { 161 161 FileOutputStream fo = new FileOutputStream(file);
Note:
See TracChangeset
for help on using the changeset viewer.