Changeset 12282 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-05-31T02:30:29+02:00 (7 years ago)
Author:
Don-vip
Message:

move Swing action to gui package (causes failure when running validator unit test as the GUI is not needed to be initialized)

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java

    r11852 r12282  
    2626
    2727import org.openstreetmap.josm.Main;
    28 import org.openstreetmap.josm.actions.ValidateAction;
    2928import org.openstreetmap.josm.data.validation.tests.Addresses;
    3029import org.openstreetmap.josm.data.validation.tests.ApiCapabilitiesTest;
     
    7675
    7776    private static volatile ValidatorLayer errorLayer;
    78 
    79     /** The validate action */
    80     public static final ValidateAction validateAction = new ValidateAction();
    8177
    8278    /** Grid detail, multiplier of east,north values for valuable cell sizing */
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r12129 r12282  
    3131import org.openstreetmap.josm.actions.AbstractSelectAction;
    3232import org.openstreetmap.josm.actions.AutoScaleAction;
     33import org.openstreetmap.josm.actions.ValidateAction;
    3334import org.openstreetmap.josm.actions.relation.EditRelationAction;
    3435import org.openstreetmap.josm.command.Command;
     
    7172    public ValidatorTreePanel tree;
    7273
     74    /** The validate action */
     75    public static final ValidateAction validateAction = new ValidateAction();
     76
    7377    /** The fix button */
    7478    private final SideButton fixButton;
     
    134138        buttons.add(lookupButton);
    135139
    136         buttons.add(new SideButton(OsmValidator.validateAction));
     140        buttons.add(new SideButton(validateAction));
    137141
    138142        fixButton = new SideButton(new AbstractAction() {
Note: See TracChangeset for help on using the changeset viewer.