Ignore:
Timestamp:
2014-02-26T23:45:59+01:00 (6 years ago)
Author:
Don-vip
Message:

package refactoring of conflict commands => move all of them to new package command.conflict (some plugins have to be updated)

Location:
trunk/src/org/openstreetmap/josm/command/conflict
Files:
2 added
9 moved

Legend:

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

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     
    1010
    1111import org.openstreetmap.josm.Main;
     12import org.openstreetmap.josm.command.Command;
    1213import org.openstreetmap.josm.data.conflict.Conflict;
    1314import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    1617import org.openstreetmap.josm.tools.ImageProvider;
    1718
     19/**
     20 * Command used to add a new conflict.
     21 * @since 1857
     22 */
    1823public class ConflictAddCommand extends Command {
    1924    private Conflict<? extends OsmPrimitive> conflict;
    2025
     26    /**
     27     * Constructs a new {@code ConflictAddCommand}.
     28     * @param layer the data layer. Must not be null.
     29     * @param conflict the conflict to add
     30     */
    2131    public ConflictAddCommand(OsmDataLayer layer, Conflict<? extends OsmPrimitive> conflict) {
    2232        super(layer);
     
    3747        );
    3848    }
    39     @Override public boolean executeCommand() {
     49
     50    @Override
     51    public boolean executeCommand() {
    4052        try {
    4153            getLayer().getConflicts().add(conflict);
     
    4759    }
    4860
    49     @Override public void undoCommand() {
     61    @Override
     62    public void undoCommand() {
    5063        if (! Main.map.mapView.hasLayer(getLayer())) {
    5164            Main.warn(tr("Layer ''{0}'' does not exist any more. Cannot remove conflict for object ''{1}''.",
     
    5871    }
    5972
    60     @Override public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) {
     73    @Override
     74    public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added) {
    6175        // nothing to fill
    6276    }
  • trunk/src/org/openstreetmap/josm/command/conflict/ConflictResolveCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
    66import org.openstreetmap.josm.Main;
     7import org.openstreetmap.josm.command.Command;
    78import org.openstreetmap.josm.data.conflict.Conflict;
    89import org.openstreetmap.josm.data.conflict.ConflictCollection;
  • trunk/src/org/openstreetmap/josm/command/conflict/CoordinateConflictResolveCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
  • trunk/src/org/openstreetmap/josm/command/conflict/DeletedStateConflictResolveCommand.java

    r6886 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
  • trunk/src/org/openstreetmap/josm/command/conflict/ModifiedConflictResolveCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.marktr;
  • trunk/src/org/openstreetmap/josm/command/conflict/RelationMemberConflictResolverCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
  • trunk/src/org/openstreetmap/josm/command/conflict/TagConflictResolveCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.trn;
  • trunk/src/org/openstreetmap/josm/command/conflict/VersionConflictResolveCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.marktr;
  • trunk/src/org/openstreetmap/josm/command/conflict/WayNodesConflictResolverCommand.java

    r6884 r6887  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.command;
     2package org.openstreetmap.josm.command.conflict;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
Note: See TracChangeset for help on using the changeset viewer.