Changeset 20426 in osm for applications/editors/josm/plugins/validator/src
- Timestamp:
- 2010-03-11T21:21:49+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java
r19072 r20426 32 32 */ 33 33 public class ErrorLayer extends Layer implements LayerChangeListener { 34 34 35 private OSMValidatorPlugin plugin; 36 37 private int updateCount = -1; 38 35 39 36 40 public ErrorLayer(OSMValidatorPlugin plugin) { … … 56 60 @Override 57 61 public void paint(final Graphics2D g, final MapView mv, Bounds bounds) { 62 updateCount = plugin.validationDialog.tree.getUpdateCount(); 58 63 DefaultMutableTreeNode root = plugin.validationDialog.tree.getRoot(); 59 64 if (root == null || root.getChildCount() == 0) … … 104 109 105 110 @Override 111 public boolean isChanged() { 112 return updateCount != plugin.validationDialog.tree.getUpdateCount(); 113 } 114 115 @Override 106 116 public void visitBoundingBox(BoundingXYVisitor v) { 107 117 } -
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorTreePanel.java
r13497 r20426 44 44 45 45 /** 46 * If {@link #filter} is not <code>null</code> only errors are displayed 47 * that refer to one of the primitives in the filter. 46 * If {@link #filter} is not <code>null</code> only errors are displayed 47 * that refer to one of the primitives in the filter. 48 48 */ 49 49 private Set<OsmPrimitive> filter = null; 50 51 private int updateCount; 50 52 51 53 /** … … 65 67 } 66 68 69 @Override 67 70 public String getToolTipText(MouseEvent e) { 68 71 String res = null; … … 105 108 */ 106 109 public void buildTree() { 110 updateCount++; 107 111 DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(); 108 112 … … 325 329 return (DefaultMutableTreeNode) treeModel.getRoot(); 326 330 } 331 332 public int getUpdateCount() { 333 return updateCount; 334 } 327 335 }
Note:
See TracChangeset
for help on using the changeset viewer.