Changeset 655 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2008-06-15T12:28:42+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/AddCommand.java
r630 r655 21 21 /** 22 22 * A command that adds an osm primitive to a dataset. Keys cannot be added this 23 * way. Use ChangeKeyValueCommand instead.23 * way. 24 24 * 25 * See ChangeCommand for comments on relation back references. 25 * See {@link ChangeCommand ChangeCommand} for comments on relation back references. 26 26 * 27 27 * @author imi -
trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java
r630 r655 26 26 public class ChangePropertyCommand extends Command { 27 27 /** 28 * All primitives ,that are affected with this command.28 * All primitives that are affected with this command. 29 29 */ 30 30 private final List<OsmPrimitive> objects; … … 35 35 /** 36 36 * The key value. If it is <code>null</code>, delete all key references with the given 37 * key. Else, change the properties of all objects to the given value or create keys of37 * key. Otherwise, change the properties of all objects to the given value or create keys of 38 38 * those objects that do not have the key yet. 39 39 */ -
trunk/src/org/openstreetmap/josm/command/Command.java
r630 r655 25 25 * one atomic action on a specific dataset, such as move or delete. 26 26 * 27 * Remember ,that the command must be executable and undoable, even if the27 * Remember that the command must be executable and undoable, even if the 28 28 * Main.ds has changed, so the command must save the dataset it operates on 29 29 * if necessary. … … 71 71 /** 72 72 * Undoes the command. 73 * It can be assumed ,that all objects are in the same state they were before.73 * It can be assumed that all objects are in the same state they were before. 74 74 * It can also be assumed that executeCommand was called exactly once before. 75 75 * … … 82 82 83 83 /** 84 * Called ,when a layer has been removed to have the command remove itself from84 * Called when a layer has been removed to have the command remove itself from 85 85 * any buffer if it is not longer applicable to the dataset (e.g. it was part of 86 86 * the removed layer) … … 123 123 * Add to the lists, don't clear them. 124 124 * 125 * @param modified 126 * @param deleted 127 * @param added 125 * @param modified The modified primitives 126 * @param deleted The deleted primitives 127 * @param added The added primitives 128 128 */ 129 129 abstract public void fillModifiedData(Collection<OsmPrimitive> modified, -
trunk/src/org/openstreetmap/josm/command/MoveCommand.java
r630 r655 83 83 * vector plus this one. 84 84 * 85 * The move is immediatly executed and any undo will undo both vectors to 85 * The move is immediately executed and any undo will undo both vectors to 86 86 * the original position the objects had before first moving. 87 87 */ -
trunk/src/org/openstreetmap/josm/command/SequenceCommand.java
r630 r655 14 14 15 15 /** 16 * A command consisting of a sequen zof other commands. Executes the other commands16 * A command consisting of a sequence of other commands. Executes the other commands 17 17 * and undo them in reverse order. 18 18 * @author imi … … 30 30 /** 31 31 * Create the command by specifying the list of commands to execute. 32 * @param sequenz The sequen zthat should be executed.32 * @param sequenz The sequence that should be executed. 33 33 */ 34 34 public SequenceCommand(String name, Collection<Command> sequenz) { … … 39 39 40 40 /** 41 * Conv inient constructor, if the commands are known at compile time.41 * Convenient constructor, if the commands are known at compile time. 42 42 */ 43 43 public SequenceCommand(String name, Command... sequenz) {
Note:
See TracChangeset
for help on using the changeset viewer.