Changeset 17526 in osm for applications/editors


Ignore:
Timestamp:
2009-09-08T23:04:43+02:00 (15 years ago)
Author:
guggis
Message:

Replaced deprecated constructors for ExtendedDialog - update to r2081

Location:
applications/editors/josm/plugins/agpifoj
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/agpifoj/build.xml

    r17356 r17526  
    3434                <attribute name="Plugin-Early" value="false"/>
    3535                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/AgPifoJ"/>
    36                 <attribute name="Plugin-Mainversion" value="2005"/>
     36                <attribute name="Plugin-Mainversion" value="2081"/>
    3737                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3838            </manifest>
  • applications/editors/josm/plugins/agpifoj/src/org/openstreetmap/josm/plugins/agpifoj/CorrelateGpxWithImages.java

    r17363 r17526  
    572572        GpxDataWrapper selectedGpx = null;
    573573        while (! isOk) {
    574             int answer = new ExtendedDialog(Main.parent,
     574                ExtendedDialog dialog = new ExtendedDialog(
     575                                Main.parent,
    575576                tr("Correlate images with GPX track"),
    576                 panel,
    577                 new String[] { tr("Correlate"), tr("Auto-Guess"), tr("Cancel") },
    578                 new String[] { "ok.png", "dialogs/gpx2imgManual.png", "cancel.png" }).getValue();
    579 
     577                new String[] { tr("Correlate"), tr("Auto-Guess"), tr("Cancel") }
     578                                );
     579
     580                dialog.setContent(panel);
     581                dialog.setButtonIcons(new String[] { "ok.png", "dialogs/gpx2imgManual.png", "cancel.png" });
     582                dialog.showDialog();
     583                int answer = dialog.getValue();
    580584            if(answer != 1 && answer != 2)
    581585                return;
     
    880884        // immediately. Therefore "Close" is marked with an "OK" icon.
    881885        // Settings are only saved temporarily to the layer.
    882         int answer = new ExtendedDialog(Main.parent,
     886        ExtendedDialog d = new ExtendedDialog(Main.parent,
    883887            tr("Adjust timezone and offset"),
    884             p,
    885             new String[] { tr("Close"),  tr("Default Values") },
    886             new String[] { "ok.png", "dialogs/refresh.png"}
    887         ).getValue();
    888 
     888            new String[] { tr("Close"),  tr("Default Values") }           
     889        );
     890
     891        d.setContent(p);
     892        d.setButtonIcons(new String[] { "ok.png", "dialogs/refresh.png"});
     893        d.showDialog();
     894        int answer = d.getValue();
    889895        // User wants default values; discard old result and re-open dialog
    890896        if(answer == 2) {
Note: See TracChangeset for help on using the changeset viewer.