Changeset 17356 in osm for applications
- Timestamp:
- 2009-08-30T17:14:18+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/agpifoj
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/agpifoj/build.xml
r16784 r17356 34 34 <attribute name="Plugin-Early" value="false"/> 35 35 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/AgPifoJ"/> 36 <attribute name="Plugin-Mainversion" value=" 1893"/>36 <attribute name="Plugin-Mainversion" value="2005"/> 37 37 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 38 38 </manifest> -
applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java
r16784 r17356 148 148 cbGpx.setSelectedIndex(i); 149 149 if (!sel.getName().equals(wrapper.name)) { 150 OptionPaneUtil.showMessageDialog(150 JOptionPane.showMessageDialog( 151 151 Main.parent, 152 152 tr("File {0} is loaded yet under the name \"{1}\"", sel.getName(), wrapper.name), … … 172 172 } catch (SAXException x) { 173 173 x.printStackTrace(); 174 OptionPaneUtil.showMessageDialog(174 JOptionPane.showMessageDialog( 175 175 Main.parent, 176 176 tr("Error while parsing {0}",sel.getName())+": "+x.getMessage(), … … 181 181 } catch (IOException x) { 182 182 x.printStackTrace(); 183 OptionPaneUtil.showMessageDialog(183 JOptionPane.showMessageDialog( 184 184 Main.parent, 185 185 tr("Could not read \"{0}\"",sel.getName())+"\n"+x.getMessage(), … … 386 386 boolean isOk = false; 387 387 while (! isOk) { 388 int answer = OptionPaneUtil.showConfirmationDialog(388 int answer = JOptionPane.showConfirmDialog( 389 389 Main.parent, panel, 390 390 tr("Synchronize time from a photo of the GPS receiver"), … … 402 402 - dateFormat.parse(tfGpsTime.getText()).getTime(); 403 403 } catch(ParseException e) { 404 OptionPaneUtil.showMessageDialog(Main.parent, tr("Error while parsing the date.\n"404 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing the date.\n" 405 405 + "Please use the requested format"), 406 406 tr("Invalid date"), JOptionPane.ERROR_MESSAGE ); … … 586 586 587 587 if (item == null || ! (item instanceof GpxDataWrapper)) { 588 OptionPaneUtil.showMessageDialog(Main.parent, tr("You should select a GPX track"),588 JOptionPane.showMessageDialog(Main.parent, tr("You should select a GPX track"), 589 589 tr("No selected GPX track"), JOptionPane.ERROR_MESSAGE ); 590 590 continue; … … 599 599 Float timezoneValue = parseTimezone(tfTimezone.getText().trim()); 600 600 if (timezoneValue == null) { 601 OptionPaneUtil.showMessageDialog(Main.parent, tr("Error while parsing timezone.\nExpected format: {0}", "+H:MM"),601 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing timezone.\nExpected format: {0}", "+H:MM"), 602 602 tr("Invalid timezone"), JOptionPane.ERROR_MESSAGE); 603 603 continue; … … 612 612 delta = Long.parseLong(deltaText); 613 613 } catch(NumberFormatException nfe) { 614 OptionPaneUtil.showMessageDialog(Main.parent, tr("Error while parsing offset.\nExpected format: {0}", "number"),614 JOptionPane.showMessageDialog(Main.parent, tr("Error while parsing offset.\nExpected format: {0}", "number"), 615 615 tr("Invalid offset"), JOptionPane.ERROR_MESSAGE); 616 616 continue; … … 691 691 // no images found, exit 692 692 if(autoImgs.size() <= 0) { 693 OptionPaneUtil.showMessageDialog(Main.parent,693 JOptionPane.showMessageDialog(Main.parent, 694 694 tr("The selected photos don't contain time information."), 695 695 tr("Photos don't contain time information"), JOptionPane.WARNING_MESSAGE); … … 698 698 699 699 AgpifojDialog dialog = AgpifojDialog.getInstance(); 700 dialog.action.button.setSelected(true); 701 dialog.action.actionPerformed(null); 700 dialog.showDialog(); 702 701 // Will show first photo if none is selected yet 703 702 if(!dialog.hasImage()) … … 727 726 // No GPX timestamps found, exit 728 727 if(firstGPXDate < 0) { 729 OptionPaneUtil.showMessageDialog(Main.parent,728 JOptionPane.showMessageDialog(Main.parent, 730 729 tr("The selected GPX track doesn't contain timestamps. Please select another one."), 731 730 tr("GPX Track has no time information"), JOptionPane.WARNING_MESSAGE); … … 864 863 sldSeconds.setValue(offset%60); 865 864 } catch(Exception e) { 866 OptionPaneUtil.showMessageDialog(Main.parent,865 JOptionPane.showMessageDialog(Main.parent, 867 866 tr("An error occurred while trying to match the photos to the GPX track." 868 867 +" You can adjust the sliders to manually match the photos."),
Note:
See TracChangeset
for help on using the changeset viewer.