Ignore:
Timestamp:
2008-06-15T12:28:42+02:00 (12 years ago)
Author:
ramack
Message:

patch by bruce89, closes #812; thanks bruce

Location:
trunk/src/org/openstreetmap/josm/command
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/AddCommand.java

    r630 r655  
    2121/**
    2222 * A command that adds an osm primitive to a dataset. Keys cannot be added this
    23  * way. Use ChangeKeyValueCommand instead.
     23 * way.
    2424 *
    25  * See ChangeCommand for comments on relation back references.
     25 * See {@link ChangeCommand ChangeCommand} for comments on relation back references.
    2626 *
    2727 * @author imi
  • trunk/src/org/openstreetmap/josm/command/ChangePropertyCommand.java

    r630 r655  
    2626public class ChangePropertyCommand extends Command {
    2727        /**
    28          * All primitives, that are affected with this command.
     28         * All primitives that are affected with this command.
    2929         */
    3030        private final List<OsmPrimitive> objects;
     
    3535        /**
    3636         * 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 of
     37         * key. Otherwise, change the properties of all objects to the given value or create keys of
    3838         * those objects that do not have the key yet.
    3939         */
  • trunk/src/org/openstreetmap/josm/command/Command.java

    r630 r655  
    2525 * one atomic action on a specific dataset, such as move or delete.
    2626 *
    27  * Remember, that the command must be executable and undoable, even if the
     27 * Remember that the command must be executable and undoable, even if the
    2828 * Main.ds has changed, so the command must save the dataset it operates on
    2929 * if necessary.
     
    7171   /**
    7272    * 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.
    7474    * It can also be assumed that executeCommand was called exactly once before.
    7575    *
     
    8282
    8383   /**
    84     * Called, when a layer has been removed to have the command remove itself from
     84    * Called when a layer has been removed to have the command remove itself from
    8585    * any buffer if it is not longer applicable to the dataset (e.g. it was part of
    8686    * the removed layer)
     
    123123    * Add to the lists, don't clear them.
    124124    *
    125     * @param modified  The modified primitives
    126     * @param deleted   The deleted primitives
    127     * @param added      The added primitives
     125    * @param modified The modified primitives
     126    * @param deleted The deleted primitives
     127    * @param added The added primitives
    128128    */
    129129   abstract public void fillModifiedData(Collection<OsmPrimitive> modified,
  • trunk/src/org/openstreetmap/josm/command/MoveCommand.java

    r630 r655  
    8383         * vector plus this one.
    8484         *
    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
    8686         * the original position the objects had before first moving.
    8787         */
  • trunk/src/org/openstreetmap/josm/command/SequenceCommand.java

    r630 r655  
    1414
    1515/**
    16  * A command consisting of a sequenz of other commands. Executes the other commands
     16 * A command consisting of a sequence of other commands. Executes the other commands
    1717 * and undo them in reverse order.
    1818 * @author imi
     
    3030        /**
    3131         * Create the command by specifying the list of commands to execute.
    32          * @param sequenz The sequenz that should be executed.
     32         * @param sequenz The sequence that should be executed.
    3333         */
    3434        public SequenceCommand(String name, Collection<Command> sequenz) {
     
    3939
    4040        /**
    41          * Convinient constructor, if the commands are known at compile time.
     41         * Convenient constructor, if the commands are known at compile time.
    4242         */
    4343        public SequenceCommand(String name, Command... sequenz) {
Note: See TracChangeset for help on using the changeset viewer.