Changeset 2489 in josm for trunk


Ignore:
Timestamp:
2009-11-21T13:51:23+01:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3990: "Bearbeiten" button without function

File:
1 edited

Legend:

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

    r2473 r2489  
    569569
    570570        EditAction editAction = new EditAction();
    571         membershipTable.getSelectionModel().addListSelectionListener(editAction);
     571        propertyTable.getSelectionModel().addListSelectionListener(editAction);
    572572        this.btnEdit = new SideButton(editAction);
    573573        buttonPanel.add(this.btnEdit);
     
    788788    }
    789789
     790    /* ---------------------------------------------------------------------------------- */
     791    /* LayerChangeListener                                                                */
     792    /* ---------------------------------------------------------------------------------- */
    790793    public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    791794        if (newLayer instanceof OsmDataLayer) {
     
    805808        // do nothing
    806809    }
    807 
    808810
    809811    class DeleteAction extends AbstractAction implements ListSelectionListener {
     
    899901            if (!isEnabled())
    900902                return;
    901             int row = membershipTable.getSelectedRow();
    902             if (e.getActionCommand().equals("Edit")) {
    903                 propertyEdit(row >= 0 ? row : 0);
    904             }
     903            int row = propertyTable.getSelectedRow();
     904            propertyEdit(row >= 0 ? row : 0);
    905905        }
    906906
    907907        protected void updateEnabledState() {
    908             setEnabled(membershipTable.getSelectedRowCount() == 1);
     908            setEnabled(propertyTable.getSelectedRowCount() == 1);
    909909        }
    910910
Note: See TracChangeset for help on using the changeset viewer.