Changeset 17552 in osm
- Timestamp:
- 2009-09-09T00:29:50+02:00 (15 years ago)
- 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 147 147 ExtendedDialog diag = new ExtendedDialog(Main.parent, 148 148 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"}); 152 153 153 154 // This repeatedly shows the dialog in case there has been an error. 154 155 // The loop is break;-ed if the users cancels 155 156 outer: while(true) { 157 diag.showDialog(); 156 158 int answer = diag.getValue(); 157 159 // Break loop when the user cancels -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java
r17390 r17552 173 173 pnl.add(layerList, GBC.eol()); 174 174 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(); 177 184 if (decision != 1) 178 185 return null;
Note:
See TracChangeset
for help on using the changeset viewer.