- Timestamp:
- 2009-11-21T13:51:23+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
r2473 r2489 569 569 570 570 EditAction editAction = new EditAction(); 571 membershipTable.getSelectionModel().addListSelectionListener(editAction);571 propertyTable.getSelectionModel().addListSelectionListener(editAction); 572 572 this.btnEdit = new SideButton(editAction); 573 573 buttonPanel.add(this.btnEdit); … … 788 788 } 789 789 790 /* ---------------------------------------------------------------------------------- */ 791 /* LayerChangeListener */ 792 /* ---------------------------------------------------------------------------------- */ 790 793 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 791 794 if (newLayer instanceof OsmDataLayer) { … … 805 808 // do nothing 806 809 } 807 808 810 809 811 class DeleteAction extends AbstractAction implements ListSelectionListener { … … 899 901 if (!isEnabled()) 900 902 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); 905 905 } 906 906 907 907 protected void updateEnabledState() { 908 setEnabled( membershipTable.getSelectedRowCount() == 1);908 setEnabled(propertyTable.getSelectedRowCount() == 1); 909 909 } 910 910
Note:
See TracChangeset
for help on using the changeset viewer.