Changeset 10759 in josm
- Timestamp:
- 2016-08-07T17:47:01+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r10742 r10759 211 211 212 212 /** 213 * The data validation handler.214 */215 public OsmValidator validator;216 217 /**218 213 * The file watcher service. 219 214 */ … … 641 636 @Override 642 637 public void initialize() { 643 validator = new OsmValidator();638 OsmValidator.initialize(); 644 639 } 645 640 }); -
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r10507 r10759 70 70 * @author Francisco R. Santos <frsantos@gmail.com> 71 71 */ 72 public class OsmValidator { 72 public final class OsmValidator { 73 74 private OsmValidator() { 75 // Hide default constructor for utilities classes 76 } 73 77 74 78 public static volatile ValidatorLayer errorLayer; 75 79 76 80 /** The validate action */ 77 public ValidateAction validateAction = new ValidateAction();81 public static final ValidateAction validateAction = new ValidateAction(); 78 82 79 83 /** Grid detail, multiplier of east,north values for valuable cell sizing */ … … 150 154 151 155 /** 152 * Constructs a new{@code OsmValidator}.153 */ 154 public OsmValidator() {156 * Initializes {@code OsmValidator}. 157 */ 158 public static void initialize() { 155 159 checkValidatorDir(); 156 160 initializeGridDetail(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r10611 r10759 135 135 buttons.add(lookupButton); 136 136 137 buttons.add(new SideButton( Main.main.validator.validateAction));137 buttons.add(new SideButton(OsmValidator.validateAction)); 138 138 139 139 fixButton = new SideButton(new AbstractAction() {
Note:
See TracChangeset
for help on using the changeset viewer.