Changeset 6354 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2013-11-02T16:36:10+01:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/validation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/Test.java
r6336 r6354 23 23 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 24 24 import org.openstreetmap.josm.tools.GBC; 25 import org.openstreetmap.josm.tools.Utils; 25 26 26 27 /** … … 64 65 /** the progress monitor to use */ 65 66 protected ProgressMonitor progressMonitor; 67 68 /** the start time to compute elapsed time when test finishes */ 69 protected long startTime; 70 66 71 /** 67 72 * Constructor … … 87 92 */ 88 93 public void initialize() throws Exception { 94 this.startTime = -1; 89 95 } 90 96 … … 100 106 this.progressMonitor = progressMonitor; 101 107 } 102 this.progressMonitor.beginTask(tr("Running test {0}", name)); 103 errors = new ArrayList<TestError>(30); 108 String startMessage = tr("Running test {0}", name); 109 this.progressMonitor.beginTask(startMessage); 110 Main.debug(startMessage); 111 this.errors = new ArrayList<TestError>(30); 112 this.startTime = System.currentTimeMillis(); 104 113 } 105 114 … … 130 139 progressMonitor.finishTask(); 131 140 progressMonitor = null; 141 if (startTime > 0) { 142 long elapsedTime = System.currentTimeMillis() - startTime; 143 Main.info(tr("Test ''{0}'' completed in {1}", getName(), Utils.getDurationString(elapsedTime))); 144 } 132 145 } 133 146 -
trunk/src/org/openstreetmap/josm/data/validation/tests/TagChecker.java
r6329 r6354 151 151 */ 152 152 public TagChecker() { 153 super(tr("Tag checker :"), tr("This test checks for errors in tag keys and values."));153 super(tr("Tag checker"), tr("This test checks for errors in tag keys and values.")); 154 154 } 155 155 … … 511 511 a.anchor = GridBagConstraints.EAST; 512 512 513 testPanel.add(new JLabel(name ), GBC.eol().insets(3,0,0,0));513 testPanel.add(new JLabel(name+" :"), GBC.eol().insets(3,0,0,0)); 514 514 515 515 prefCheckKeys = new JCheckBox(tr("Check property keys."), Main.pref.getBoolean(PREF_CHECK_KEYS, true));
Note:
See TracChangeset
for help on using the changeset viewer.