Author: scabanovich
Date: 2011-07-29 15:19:39 -0400 (Fri, 29 Jul 2011)
New Revision: 33360
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/ConstraintChecker.java
Log:
JBIDE-9408
https://issues.jboss.org/browse/JBIDE-9408
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/ConstraintChecker.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/ConstraintChecker.java 2011-07-29
18:31:38 UTC (rev 33359)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/markers/ConstraintChecker.java 2011-07-29
19:19:39 UTC (rev 33360)
@@ -32,9 +32,12 @@
public void check() {
if(object == null || !object.isActive()) return;
+ boolean empty = p.problems.isEmpty();
p.problems.clear();
check(object);
- addMarkers();
+ if(!empty || !p.problems.isEmpty()) {
+ addMarkers();
+ }
}
private void check(XModelObject o) {