Changeset 12279 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
- Timestamp:
- 2017-05-30T15:12:36+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
r11945 r12279 376 376 */ 377 377 private static boolean warnOverwriteKey(String action, String togglePref) { 378 ExtendedDialog ed =new ExtendedDialog(378 return new ExtendedDialog( 379 379 Main.parent, 380 380 tr("Overwrite key"), 381 new String[]{tr("Replace"), tr("Cancel")}); 382 ed.setButtonIcons(new String[]{"purge", "cancel"}); 383 ed.setContent(action+'\n'+ tr("The new key is already used, overwrite values?")); 384 ed.setCancelButton(2); 385 ed.toggleEnable(togglePref); 386 ed.showDialog(); 387 388 return ed.getValue() == 1; 381 tr("Replace"), tr("Cancel")) 382 .setButtonIcons("purge", "cancel") 383 .setContent(action+'\n'+ tr("The new key is already used, overwrite values?")) 384 .setCancelButton(2) 385 .toggleEnable(togglePref) 386 .showDialog().getValue() == 1; 389 387 } 390 388 … … 416 414 417 415 protected EditTagDialog(String key, Map<String, Integer> map, final boolean initialFocusOnKey) { 418 super(Main.parent, trn("Change value?", "Change values?", map.size()), new String[] {tr("OK"), tr("Cancel")});419 setButtonIcons( new String[] {"ok", "cancel"});416 super(Main.parent, trn("Change value?", "Change values?", map.size()), tr("OK"), tr("Cancel")); 417 setButtonIcons("ok", "cancel"); 420 418 setCancelButton(2); 421 419 configureContextsensitiveHelp("/Dialog/EditValue", true /* show help button */); … … 679 677 680 678 protected AddTagsDialog() { 681 super(Main.parent, tr("Add value?"), new String[] {tr("OK"), tr("Cancel")});682 setButtonIcons( new String[] {"ok", "cancel"});679 super(Main.parent, tr("Add value?"), tr("OK"), tr("Cancel")); 680 setButtonIcons("ok", "cancel"); 683 681 setCancelButton(2); 684 682 configureContextsensitiveHelp("/Dialog/AddValue", true /* show help button */);
Note:
See TracChangeset
for help on using the changeset viewer.