Changeset 1305 in josm for trunk


Ignore:
Timestamp:
2009-01-20T02:49:00+01:00 (15 years ago)
Author:
ulfl
Message:

fix #2056: restore former relation list handling (at least pressing the select button will zoom to the selection)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/RelationListDialog.java

    r1303 r1305  
    7171            }
    7272        });
    73         displaylist.addListSelectionListener(new ListSelectionListener(){
     73        /*displaylist.addListSelectionListener(new ListSelectionListener(){
    7474            public void valueChanged(ListSelectionEvent e) {
    7575                Relation toEdit = (Relation) displaylist.getSelectedValue();
     
    8080                }
    8181            }
    82         });
     82        });*/
    8383
    8484        add(new JScrollPane(displaylist), BorderLayout.CENTER);
     
    9393        }), GBC.std());
    9494
    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() {
    9696            public void actionPerformed(ActionEvent e) {
    9797                // replace selection with the relation from the list
    9898                Main.ds.setSelected((Relation)displaylist.getSelectedValue());
     99                AutoScaleAction asa = new AutoScaleAction("selection");
     100                asa.actionPerformed(null);
    99101            }
    100         }), GBC.std());*/
     102        }), GBC.std());
    101103
    102104        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.