Changeset 333 in josm for branch/0.5/src/org/openstreetmap
- Timestamp:
- 2007-09-27T01:23:42+02:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branch/0.5/src/org/openstreetmap/josm/gui/dialogs/RelationEditor.java
r330 r333 209 209 JPanel buttonPanel = new JPanel(new GridLayout(1,3)); 210 210 211 buttonPanel.add(createButton(marktr("Add Selected"), tr("Add all currently selected objects as members"), KeyEvent.VK_A, new ActionListener() {211 buttonPanel.add(createButton(marktr("Add Selected"),"addselected", tr("Add all currently selected objects as members"), KeyEvent.VK_A, new ActionListener() { 212 212 public void actionPerformed(ActionEvent e) { 213 213 addSelected(); … … 215 215 })); 216 216 217 buttonPanel.add(createButton(marktr("Delete"), tr("Remove the member in the current table row from this relation"), KeyEvent.VK_D, new ActionListener() {217 buttonPanel.add(createButton(marktr("Delete"),"delete", tr("Remove the member in the current table row from this relation"), KeyEvent.VK_D, new ActionListener() { 218 218 public void actionPerformed(ActionEvent e) { 219 219 int row = memberTable.getSelectedRow(); … … 226 226 })); 227 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() {228 buttonPanel.add(createButton(marktr("Select"),"select", tr("Highlight the member from the current table row as JOSM's selection"), KeyEvent.VK_S, new ActionListener() { 229 229 public void actionPerformed(ActionEvent e) { 230 230 int row = memberTable.getSelectedRow(); … … 261 261 } 262 262 263 private JButton createButton(String name, String tooltip, int mnemonic, ActionListener actionListener) {264 JButton b = new JButton(tr(name), ImageProvider.get("dialogs", name.toLowerCase()));263 private JButton createButton(String name, String iconName, String tooltip, int mnemonic, ActionListener actionListener) { 264 JButton b = new JButton(tr(name), ImageProvider.get("dialogs", iconName)); 265 265 b.setActionCommand(name); 266 266 b.addActionListener(actionListener);
Note:
See TracChangeset
for help on using the changeset viewer.