Ignore:
Timestamp:
2017-05-31T02:30:29+02:00 (3 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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.