Changeset 11611 in josm for trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
- Timestamp:
- 2017-02-25T14:05:29+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/PurgeAction.java
r11553 r11611 53 53 * 54 54 * This action is undo-able. In order not to break previous commands in the 55 * undo buffer, we must re-add the identical object (and not semantically 56 * equal ones). 55 * undo buffer, we must re-add the identical object (and not semantically equal ones). 56 * 57 * @since 3431 57 58 */ 58 59 public class PurgeAction extends JosmAction { … … 68 69 protected transient Set<OsmPrimitive> toPurgeChecked; 69 70 /** 70 * Subset of toPurgeChecked. Marks primitives that remain in the 71 * dataset, but incomplete. 71 * Subset of toPurgeChecked. Marks primitives that remain in the dataset, but incomplete. 72 72 */ 73 73 protected transient Set<OsmPrimitive> makeIncomplete; … … 81 81 */ 82 82 public PurgeAction() { 83 this(true); 84 } 85 86 /** 87 * Constructs a new {@code PurgeAction} with optional shortcut. 88 * @param addShortcut controls whether the shortcut should be registered or not 89 * @since 11611 90 */ 91 public PurgeAction(boolean addShortcut) { 83 92 /* translator note: other expressions for "purge" might be "forget", "clean", "obliterate", "prune" */ 84 super(tr("Purge..."), "purge", tr("Forget objects but do not delete them on server when uploading."), 85 Shortcut.registerShortcut("system:purge", tr("Edit: {0}", tr("Purge")), 86 KeyEvent.VK_P, Shortcut.CTRL_SHIFT), 87 true); 93 super(tr("Purge..."), "purge", tr("Forget objects but do not delete them on server when uploading."), addShortcut ? 94 Shortcut.registerShortcut("system:purge", tr("Edit: {0}", tr("Purge")), KeyEvent.VK_P, Shortcut.CTRL_SHIFT) 95 : null, true); 88 96 putValue("help", HelpUtil.ht("/Action/Purge")); 89 97 }
Note:
See TracChangeset
for help on using the changeset viewer.