- Timestamp:
- 2021-08-02T19:44:04+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/IRelationEditorActionAccess.java
r14030 r18118 71 71 */ 72 72 AutoCompletingTextField getTextFieldRole(); 73 74 /** 75 * Tells the member table editor to stop editing and accept any partially edited value as the value of the editor. 76 * The editor returns false if editing was not stopped; this is useful for editors that validate and can not accept invalid entries. 77 * @return {@code true} if editing was stopped; {@code false} otherwise 78 * @since 18118 79 */ 80 default boolean stopMemberCellEditing() { 81 return getMemberTable().isEditing() && getMemberTable().getCellEditor().stopCellEditing(); 82 } 73 83 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/MoveDownAction.java
r16807 r18118 34 34 public void actionPerformed(ActionEvent e) { 35 35 editorAccess.getMemberTableModel().moveDown(editorAccess.getMemberTable().getSelectedRows()); 36 editorAccess.stopMemberCellEditing(); 36 37 } 37 38 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/MoveUpAction.java
r16807 r18118 34 34 public void actionPerformed(ActionEvent e) { 35 35 editorAccess.getMemberTableModel().moveUp(editorAccess.getMemberTable().getSelectedRows()); 36 editorAccess.stopMemberCellEditing(); 36 37 } 37 38 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/RemoveAction.java
r16454 r18118 40 40 editorAccess.getMemberTable().makeMemberVisible(selectedRows[0]); 41 41 } 42 editorAccess.stopMemberCellEditing(); 42 43 } 43 44 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/ReverseAction.java
r15226 r18118 31 31 public void actionPerformed(ActionEvent e) { 32 32 editorAccess.getMemberTableModel().reverse(); 33 editorAccess.stopMemberCellEditing(); 33 34 } 34 35 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SortAction.java
r14690 r18118 34 34 public void actionPerformed(ActionEvent e) { 35 35 editorAccess.getMemberTableModel().sort(); 36 editorAccess.stopMemberCellEditing(); 36 37 } 37 38 -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/actions/SortBelowAction.java
r14030 r18118 30 30 public void actionPerformed(ActionEvent e) { 31 31 editorAccess.getMemberTableModel().sortBelow(); 32 editorAccess.stopMemberCellEditing(); 32 33 } 33 34
Note:
See TracChangeset
for help on using the changeset viewer.