Changeset 8540 in josm for trunk/src/org/openstreetmap/josm/gui/conflict
- Timestamp:
- 2015-06-27T21:43:35+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/conflict/tags
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/tags/CombinePrimitiveResolverDialog.java
r8510 r8540 608 608 final Collection<? extends OsmPrimitive> primitives, 609 609 final TagCollection normalizedTags) throws UserCancelException { 610 String conflicts = Utils.joinAsHtmlUnorderedList(Utils.transform(normalizedTags.getKeysWithMultipleValues(), new Function<String, String>() {611 610 String conflicts = Utils.joinAsHtmlUnorderedList(Utils.transform(normalizedTags.getKeysWithMultipleValues(), 611 new Function<String, String>() { 612 612 @Override 613 613 public String apply(String key) { 614 return tr("{0} ({1})", key, Utils.join(tr(", "), Utils.transform(normalizedTags.getValues(key), new Function<String, String>() {615 614 return tr("{0} ({1})", key, Utils.join(tr(", "), Utils.transform(normalizedTags.getValues(key), 615 new Function<String, String>() { 616 616 @Override 617 617 public String apply(String x) { -
trunk/src/org/openstreetmap/josm/gui/conflict/tags/MultiValueCellEditor.java
r8512 r8540 91 91 @Override 92 92 public void processKeyEvent(KeyEvent e) { 93 if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_ENTER) { 93 int keyCode = e.getKeyCode(); 94 if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_ENTER) { 94 95 fireGotoNextDecision(); 95 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode()== KeyEvent.VK_TAB) {96 } else if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_TAB) { 96 97 if (e.isShiftDown()) { 97 98 fireGotoPreviousDecision(); … … 99 100 fireGotoNextDecision(); 100 101 } 101 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() == KeyEvent.VK_DELETE || e.getKeyCode()== KeyEvent.VK_BACK_SPACE) {102 } else if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_DELETE || keyCode == KeyEvent.VK_BACK_SPACE) { 102 103 if (editorModel.getIndexOf(MultiValueDecisionType.KEEP_NONE) > 0) { 103 104 editorModel.setSelectedItem(MultiValueDecisionType.KEEP_NONE); 104 105 fireGotoNextDecision(); 105 106 } 106 } else if (e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode()== KeyEvent.VK_ESCAPE) {107 } else if (e.getID() == KeyEvent.KEY_PRESSED && keyCode == KeyEvent.VK_ESCAPE) { 107 108 cancelCellEditing(); 108 109 }
Note:
See TracChangeset
for help on using the changeset viewer.