Index: /applications/editors/josm/plugins/validator/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- /applications/editors/josm/plugins/validator/.settings/org.eclipse.jdt.ui.prefs	(revision 20425)
+++ /applications/editors/josm/plugins/validator/.settings/org.eclipse.jdt.ui.prefs	(revision 20426)
@@ -1,3 +1,3 @@
-#Fri Jan 08 08:06:27 CET 2010
+#Thu Mar 11 21:11:01 CET 2010
 eclipse.preferences.version=1
 editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
@@ -10,5 +10,5 @@
 sp_cleanup.add_missing_methods=false
 sp_cleanup.add_missing_nls_tags=false
-sp_cleanup.add_missing_override_annotations=false
+sp_cleanup.add_missing_override_annotations=true
 sp_cleanup.add_serial_version_id=false
 sp_cleanup.always_use_blocks=true
@@ -17,5 +17,5 @@
 sp_cleanup.always_use_this_for_non_static_method_access=false
 sp_cleanup.convert_to_enhanced_for_loop=false
-sp_cleanup.correct_indentation=false
+sp_cleanup.correct_indentation=true
 sp_cleanup.format_source_code=false
 sp_cleanup.format_source_code_changes_only=false
Index: /applications/editors/josm/plugins/validator/build.xml
===================================================================
--- /applications/editors/josm/plugins/validator/build.xml	(revision 20425)
+++ /applications/editors/josm/plugins/validator/build.xml	(revision 20426)
@@ -27,5 +27,5 @@
 	-->
 	<property name="commit.message" value="validator: fixed josm bug 4594" />
-	<property name="plugin.main.version" value="3095" />
+	<property name="plugin.main.version" value="3118" />
 
 
Index: /applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java
===================================================================
--- /applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java	(revision 20425)
+++ /applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorLayer.java	(revision 20426)
@@ -32,5 +32,9 @@
  */
 public class ErrorLayer extends Layer implements LayerChangeListener {
+
     private OSMValidatorPlugin plugin;
+
+    private int updateCount = -1;
+
 
     public ErrorLayer(OSMValidatorPlugin plugin) {
@@ -56,4 +60,5 @@
     @Override
     public void paint(final Graphics2D g, final MapView mv, Bounds bounds) {
+        updateCount = plugin.validationDialog.tree.getUpdateCount();
         DefaultMutableTreeNode root = plugin.validationDialog.tree.getRoot();
         if (root == null || root.getChildCount() == 0)
@@ -104,4 +109,9 @@
 
     @Override
+    public boolean isChanged() {
+        return updateCount != plugin.validationDialog.tree.getUpdateCount();
+    }
+
+    @Override
     public void visitBoundingBox(BoundingXYVisitor v) {
     }
Index: /applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorTreePanel.java
===================================================================
--- /applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorTreePanel.java	(revision 20425)
+++ /applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/ErrorTreePanel.java	(revision 20426)
@@ -44,8 +44,10 @@
 
     /**
-     * If {@link #filter} is not <code>null</code> only errors are displayed 
-     * that refer to one of the primitives in the filter.  
+     * If {@link #filter} is not <code>null</code> only errors are displayed
+     * that refer to one of the primitives in the filter.
      */
     private Set<OsmPrimitive> filter = null;
+
+    private int updateCount;
 
     /**
@@ -65,4 +67,5 @@
     }
 
+    @Override
     public String getToolTipText(MouseEvent e) {
         String res = null;
@@ -105,4 +108,5 @@
      */
     public void buildTree() {
+        updateCount++;
         DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode();
 
@@ -325,3 +329,7 @@
         return (DefaultMutableTreeNode) treeModel.getRoot();
     }
+
+    public int getUpdateCount() {
+        return updateCount;
+    }
 }
