Ticket #17333: 17333-v2.patch
File 17333-v2.patch, 1.7 KB (added by , 5 years ago) |
---|
-
src/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelper.java
519 519 return; 520 520 if (key.equals(newkey) || value == null) { 521 521 UndoRedoHandler.getInstance().add(new ChangePropertyCommand(sel, newkey, value)); 522 AutoCompletionManager.rememberUserInput(newkey, value, true); 522 if (value != null) { 523 AutoCompletionManager.rememberUserInput(newkey, value, true); 524 recentTags.add(new Tag(key, value)); 525 } 523 526 } else { 524 527 for (OsmPrimitive osm: sel) { 525 528 if (osm.get(newkey) != null) { … … 696 699 private int commandCount; 697 700 698 701 protected AddTagsDialog() { 699 super(MainApplication.getMainFrame(), tr("Add value?"), tr("OK"), tr("Cancel"));702 super(MainApplication.getMainFrame(), tr("Add tag?"), tr("OK"), tr("Cancel")); 700 703 setButtonIcons("ok", "cancel"); 701 704 setCancelButton(2); 702 705 configureContextsensitiveHelp("/Dialog/AddValue", true /* show help button */); … … 721 724 722 725 mainPanel.add(keys, GBC.eop().fill(GBC.HORIZONTAL)); 723 726 724 mainPanel.add(new JLabel(tr(" Please selecta value")), GBC.eol());727 mainPanel.add(new JLabel(tr("Choose a value")), GBC.eol()); 725 728 values.setEditable(true); 726 729 mainPanel.add(values, GBC.eop().fill(GBC.HORIZONTAL)); 727 730