[jbosstools-commits] JBoss Tools SVN: r43893 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 20 20:26:12 EDT 2012


Author: scabanovich
Date: 2012-09-20 20:26:12 -0400 (Thu, 20 Sep 2012)
New Revision: 43893

Modified:
   trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
Log:
JBIDE-12479
https://issues.jboss.org/browse/JBIDE-12479
Cache unique Path objects.


Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java	2012-09-21 00:21:33 UTC (rev 43892)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamProject.java	2012-09-21 00:26:12 UTC (rev 43893)
@@ -40,6 +40,7 @@
 import org.eclipse.jst.jsf.designtime.DesignTimeApplicationManager;
 import org.jboss.tools.common.model.project.ext.event.Change;
 import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.common.util.UniquePaths;
 import org.jboss.tools.common.validation.internal.ProjectValidationContext;
 import org.jboss.tools.common.xml.XMLUtilities;
 import org.jboss.tools.seam.core.BijectedAttributeType;
@@ -869,6 +870,7 @@
 	 * @param source
 	 */	
 	public void registerComponents(LoadedDeclarations ds, IPath source) {
+		source = UniquePaths.getInstance().intern(source);
 		boolean isThisProject = pathCheck.isThisProject(source);
 
 		ISeamNamespace[] ns = ds.getNamespaces().toArray(new ISeamNamespace[0]);
@@ -2522,7 +2524,7 @@
 					IFile f = path.segmentCount() < 2 ? null : ResourcesPlugin.getWorkspace().getRoot().getFile(path);
 					b = !(f != null && f.exists() && f.getProject() != project);
 				}
-				paths.put(path, b);
+				paths.put(UniquePaths.getInstance().intern(path), b);
 			}
 			return b.booleanValue();
 		}



More information about the jbosstools-commits mailing list