Changeset 16681 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2009-07-25T10:35:53+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/OSMValidatorPlugin.java
r13497 r16681 72 72 /** The list of errors per layer*/ 73 73 Map<Layer, List<TestError>> layerErrors = new HashMap<Layer, List<TestError>>(); 74 74 75 75 /** Grid detail, multiplier of east,north values for valuable cell sizing */ 76 76 public static double griddetail; … … 122 122 } 123 123 } 124 124 125 125 private void loadIgnoredErrors() { 126 126 ignoredErrors.clear(); … … 250 250 /** 251 251 * Initialize grid details based on current projection system. Values based on 252 * the original value fixed for EPSG:4326 (10000) using heuristics (that is, test&error 252 * the original value fixed for EPSG:4326 (10000) using heuristics (that is, test&error 253 253 * until most bugs were discovered while keeping the processing time reasonable) 254 254 */ … … 261 261 OSMValidatorPlugin.griddetail = 0.1; 262 262 } 263 263 264 264 /** 265 265 * Initializes all tests -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidateAction.java
r16629 r16681 111 111 DataSet.fireSelectionChanged(Main.main.getCurrentDataSet().getSelected()); 112 112 } 113 114 @Override 115 public void updateEnabledState() { 116 setEnabled(getEditLayer() != null); 117 } 113 118 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ValidatorDialog.java
r16629 r16681 98 98 selectButton.setEnabled(false); 99 99 buttonPanel.add(selectButton); 100 buttonPanel.add(new SideButton(marktr("Validate"), "refresh", "Validator", 101 tr("Validate either current selection or complete dataset."), this)); 100 buttonPanel.add(new SideButton(plugin.validateAction), "refresh"); 102 101 fixButton = new SideButton(marktr("Fix"), "fix", "Validator", tr("Fix the selected errors."), this); 103 102 fixButton.setEnabled(false); … … 302 301 if (actionCommand.equals("Select")) 303 302 setSelectedItems(); 304 else if (actionCommand.equals("Validate"))305 plugin.validateAction.actionPerformed(e);306 303 else if (actionCommand.equals("Fix")) 307 304 fixErrors(e);
Note:
See TracChangeset
for help on using the changeset viewer.