Changeset 4526 in josm
- Timestamp:
- 2011-10-19T07:54:44+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r4518 r4526 188 188 private SearchAction searchActionAny = new SearchAction(false); 189 189 private AddAction addAction = new AddAction(); 190 private EditAction editAction = new EditAction(); 191 private DeleteAction deleteAction = new DeleteAction(); 190 192 191 193 @Override … … 202 204 SelectionEventManager.getInstance().removeSelectionListener(this); 203 205 MapView.removeEditLayerChangeListener(this); 206 Main.unregisterActionShortcut(addAction); 207 Main.unregisterActionShortcut(editAction); 208 Main.unregisterActionShortcut(deleteAction); 204 209 } 205 210 … … 795 800 // -- edit action 796 801 // 797 EditAction editAction = new EditAction();798 802 propertyTable.getSelectionModel().addListSelectionListener(editAction); 799 803 membershipTable.getSelectionModel().addListSelectionListener(editAction); … … 802 806 // -- delete action 803 807 // 804 DeleteAction deleteAction = new DeleteAction();805 808 this.btnDel = new SideButton(deleteAction); 806 809 membershipTable.getSelectionModel().addListSelectionListener(deleteAction); … … 1091 1094 protected void updateEnabledState() { 1092 1095 setEnabled( 1093 PropertiesDialog.this.propertyTable.getSelectedRowCount() >01094 || PropertiesDialog.this.membershipTable.getSelectedRowCount() > 01096 (propertyTable != null && propertyTable.getSelectedRowCount() == 1) 1097 ^ (membershipTable != null && membershipTable.getSelectedRowCount() == 1) 1095 1098 ); 1096 1099 } … … 1139 1142 protected void updateEnabledState() { 1140 1143 setEnabled( 1141 propertyTable.getSelectedRowCount() == 11142 ^ membershipTable.getSelectedRowCount() == 11144 (propertyTable != null && propertyTable.getSelectedRowCount() == 1) 1145 ^ (membershipTable != null && membershipTable.getSelectedRowCount() == 1) 1143 1146 ); 1144 1147 }
Note:
See TracChangeset
for help on using the changeset viewer.