Changeset 1305 in josm
- Timestamp:
- 2009-01-20T02:49:00+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java
r1303 r1305 71 71 } 72 72 }); 73 displaylist.addListSelectionListener(new ListSelectionListener(){73 /*displaylist.addListSelectionListener(new ListSelectionListener(){ 74 74 public void valueChanged(ListSelectionEvent e) { 75 75 Relation toEdit = (Relation) displaylist.getSelectedValue(); … … 80 80 } 81 81 } 82 }); 82 });*/ 83 83 84 84 add(new JScrollPane(displaylist), BorderLayout.CENTER); … … 93 93 }), GBC.std()); 94 94 95 /*buttonPanel.add(new SideButton(marktr("Select"), "select", "Selection", tr("Select this relation"), new ActionListener() {95 buttonPanel.add(new SideButton(marktr("Select"), "select", "Selection", tr("Select this relation"), new ActionListener() { 96 96 public void actionPerformed(ActionEvent e) { 97 97 // replace selection with the relation from the list 98 98 Main.ds.setSelected((Relation)displaylist.getSelectedValue()); 99 AutoScaleAction asa = new AutoScaleAction("selection"); 100 asa.actionPerformed(null); 99 101 } 100 }), GBC.std()); */102 }), GBC.std()); 101 103 102 104 buttonPanel.add(new SideButton(marktr("Edit"), "edit", "Selection", tr( "Open an editor for the selected relation"), new ActionListener() {
Note:
See TracChangeset
for help on using the changeset viewer.