Changeset 4668 in osm for applications/editors/josm
- Timestamp:
- 2007-09-24T00:31:49+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/core_0.5/src/org/openstreetmap/josm/gui/dialogs/RelationEditor.java
r4464 r4668 13 13 import java.beans.PropertyChangeEvent; 14 14 import java.beans.PropertyChangeListener; 15 import java.util.Collections; 15 16 import java.util.Map.Entry; 16 17 … … 43 44 * In the basic form, it provides two tables, one with the relation tags 44 45 * and one with the relation members. (Relation tags can be edited through 45 * the normal properties dialog as well, if you manage to get a nrelation46 * the normal properties dialog as well, if you manage to get a relation 46 47 * selected!) 47 48 * … … 208 209 JPanel buttonPanel = new JPanel(new GridLayout(1,3)); 209 210 210 buttonPanel.add(createButton(marktr("Add Selected"),tr("Add all currently selected objects as members"), KeyEvent.VK_ S, new ActionListener() {211 buttonPanel.add(createButton(marktr("Add Selected"),tr("Add all currently selected objects as members"), KeyEvent.VK_A, new ActionListener() { 211 212 public void actionPerformed(ActionEvent e) { 212 213 addSelected(); … … 214 215 })); 215 216 216 buttonPanel.add(createButton(marktr("Delete"),tr("Remove the selected memberfrom this relation"), KeyEvent.VK_D, new ActionListener() {217 buttonPanel.add(createButton(marktr("Delete"),tr("Remove the member in the current table row from this relation"), KeyEvent.VK_D, new ActionListener() { 217 218 public void actionPerformed(ActionEvent e) { 218 219 int row = memberTable.getSelectedRow(); … … 222 223 clone.members.remove(mem); 223 224 refreshTables(); 225 } 226 })); 227 228 buttonPanel.add(createButton(marktr("Select"),tr("Highlight the member from the current table row as JOSM's selection"), KeyEvent.VK_S, new ActionListener() { 229 public void actionPerformed(ActionEvent e) { 230 int row = memberTable.getSelectedRow(); 231 OsmPrimitive p = (OsmPrimitive) memberTable.getValueAt(row, 1); 232 Main.ds.setSelected(Collections.singleton(p)); 224 233 } 225 234 }));
Note:
See TracChangeset
for help on using the changeset viewer.