Author: dazarov
Date: 2009-05-18 09:59:35 -0400 (Mon, 18 May 2009)
New Revision: 15324
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1077
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-05-18
10:18:49 UTC (rev 15323)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/refactoring/RenameComponentProcessor.java 2009-05-18
13:59:35 UTC (rev 15324)
@@ -118,8 +118,8 @@
SeamProjectsSet projectsSet = new SeamProjectsSet(declarationFile.getProject());
IProject[] projects = projectsSet.getAllProjects();
- for (int i = 0; i < projects.length; i++) {
- scan(projects[i]);
+ for (IProject project : projects) {
+ scan(project);
}
}
@@ -180,7 +180,7 @@
declarationFile = (IFile)xmlDecl.getResource();
if(declarationFile != null && !coreHelper.isJar(xmlDecl)){
ITextSourceReference location =
((SeamComponentDeclaration)xmlDecl).getLocationFor(ISeamXmlComponentDeclaration.NAME);
- if(location != null)
+ if(location != null && !isBadLocation(location))
changeXMLNode(location, declarationFile);
}
}