Author: akazakov
Date: 2008-10-31 11:50:02 -0400 (Fri, 31 Oct 2008)
New Revision: 11413
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3058 Fixed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-10-31
15:50:01 UTC (rev 11412)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-10-31
15:50:02 UTC (rev 11413)
@@ -11,6 +11,7 @@
package org.jboss.tools.seam.internal.core.validation;
import java.util.Collection;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
@@ -186,14 +187,14 @@
* @see org.jboss.tools.seam.internal.core.validation.ISeamValidator#validateAll()
*/
public IStatus validateAll() throws ValidationException {
- Set<ISeamComponent> components = project.getComponents();
+ Set<ISeamComponent> components =
Collections.unmodifiableSet(project.getComponents());
for (ISeamComponent component : components) {
if(reporter.isCancelled()) {
return OK_STATUS;
}
validateComponent(component);
}
- Set<ISeamFactory> factories = project.getFactories();
+ Set<ISeamFactory> factories =
Collections.unmodifiableSet(project.getFactories());
Set<String> markedDuplicateFactoryNames = new HashSet<String>();
for (ISeamFactory factory : factories) {
if(reporter.isCancelled()) {