Changeset 2273 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
- Timestamp:
- 2009-10-11T16:37:08+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/GenericRelationEditor.java
r2163 r2273 592 592 ); 593 593 switch(ret) { 594 595 596 597 598 599 594 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: return; 595 case JOptionPane.CLOSED_OPTION: return; 596 case JOptionPane.NO_OPTION: return; 597 case JOptionPane.YES_OPTION: 598 memberTableModel.removeMembersReferringTo(toCheck); 599 break; 600 600 } 601 601 } … … 628 628 ); 629 629 switch(ret) { 630 631 632 633 634 630 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION : return true; 631 case JOptionPane.YES_OPTION: return true; 632 case JOptionPane.NO_OPTION: return false; 633 case JOptionPane.CLOSED_OPTION: return false; 634 case JOptionPane.CANCEL_OPTION: throw new AddAbortException(); 635 635 } 636 636 // should not happen … … 1064 1064 ); 1065 1065 switch(ret) { 1066 1067 1068 1066 case JOptionPane.CANCEL_OPTION: return false; 1067 case JOptionPane.YES_OPTION: return true; 1068 case JOptionPane.NO_OPTION: return false; 1069 1069 } 1070 1070 return false; … … 1200 1200 1201 1201 protected void updateEnabledState() { 1202 setEnabled(getRelation() != null && getRelation().getId() > 0);1202 setEnabled(getRelation() != null && !getRelation().isNew()); 1203 1203 } 1204 1204 } … … 1240 1240 ); 1241 1241 switch(ret) { 1242 1243 1244 1245 1242 case JOptionPane.YES_OPTION: return true; 1243 case ConditionalOptionPaneUtil.DIALOG_DISABLED_OPTION: return true; 1244 default: 1245 return false; 1246 1246 } 1247 1247 }
Note:
See TracChangeset
for help on using the changeset viewer.