Changeset 17552 in osm


Ignore:
Timestamp:
2009-09-09T00:29:50+02:00 (15 years ago)
Author:
guggis
Message:

Updating to JOSM r2082

Location:
applications/editors/josm/plugins/wmsplugin/src/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Map_Rectifier_WMSmenuAction.java

    r17390 r17552  
    147147        ExtendedDialog diag = new ExtendedDialog(Main.parent,
    148148                tr("Add Rectified Image"),
    149                 panel,
    150                 new String[] {tr("Add Rectified Image"), tr("Cancel")},
    151                 new String[] {"OLmarker.png", "cancel.png"});
     149
     150                new String[] {tr("Add Rectified Image"), tr("Cancel")});
     151        diag.setContent(panel);
     152        diag.setButtonIcons(new String[] {"OLmarker.png", "cancel.png"});
    152153
    153154        // This repeatedly shows the dialog in case there has been an error.
    154155        // The loop is break;-ed if the users cancels
    155156        outer: while(true) {
     157                diag.showDialog();
    156158            int answer = diag.getValue();
    157159            // Break loop when the user cancels
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java

    r17390 r17552  
    173173       pnl.add(layerList, GBC.eol());
    174174   
    175        int decision = new ExtendedDialog(Main.parent, tr("Select WMS layer"), pnl, new String[] { tr("Start adjusting"),
    176            tr("Cancel") }, new String[] { "mapmode/adjustwms", "cancel" }).getValue();
     175       ExtendedDialog diag = new ExtendedDialog(
     176                   Main.parent,
     177                   tr("Select WMS layer"),
     178                   new String[] { tr("Start adjusting"),tr("Cancel") }
     179                   );
     180       diag.setContent(pnl);
     181       diag.setButtonIcons(new String[] { "mapmode/adjustwms", "cancel" });
     182       diag.showDialog();
     183       int decision = diag.getValue();
    177184       if (decision != 1)
    178185           return null;
Note: See TracChangeset for help on using the changeset viewer.