Changeset 273 in josm
- Timestamp:
- 2007-07-05T10:48:17+02:00 (17 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/DataSet.java
r271 r273 108 108 public void setSelected(OsmPrimitive... osm) { 109 109 clearSelection(); 110 if (osm.length == 0 )110 if (osm.length == 0 || (osm.length == 1 && osm[0] == null)) 111 111 return; 112 112 for (OsmPrimitive o : osm) -
src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r272 r273 214 214 // Refresh the values model when focus is gained 215 215 editor.addFocusListener(new FocusAdapter() { 216 public void focusGained(FocusEvent e) {216 @Override public void focusGained(FocusEvent e) { 217 217 String key = keys.getEditor().getItem().toString(); 218 218 if (allData.containsKey(key)) { -
src/org/openstreetmap/josm/tools/AutoCompleteComboBox.java
r272 r273 29 29 } 30 30 31 public void remove(int offs, int len) throws BadLocationException {31 @Override public void remove(int offs, int len) throws BadLocationException { 32 32 if (selecting) 33 33 return; … … 35 35 } 36 36 37 public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {37 @Override public void insertString(int offs, String str, AttributeSet a) throws BadLocationException { 38 38 super.insertString(offs, str, a); 39 39 -
test/org/openstreetmap/josm/data/osm/DataSetTest.java
r203 r273 73 73 assertTrue(node3.selected); 74 74 assertFalse(node2.selected); 75 76 ds.setSelected(); 77 assertFalse(node3.selected || node2.selected); 78 79 ds.setSelected(node1, way); 80 assertTrue(node1.selected && way.selected); 81 assertFalse(node3.selected); 82 83 ds.setSelected((OsmPrimitive)null); 84 assertFalse(node1.selected || node2.selected || node3.selected || way.selected); 75 85 } 76 86
Note:
See TracChangeset
for help on using the changeset viewer.