Author: vrubezhny
Date: 2009-11-26 09:42:02 -0500 (Thu, 26 Nov 2009)
New Revision: 18854
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
Log:
JBIDE-5119: Refactor PageContextFactory to improve perfomance of context creation
cleanUp() methods are made due to allow the KbBuilder to clean up the cached contexts
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2009-11-26
14:40:18 UTC (rev 18853)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2009-11-26
14:42:02 UTC (rev 18854)
@@ -163,6 +163,11 @@
return getInstance().createPageContext(file, null);
}
+ /**
+ * Cleans up the context for the file specified
+ *
+ * @param file
+ */
public void cleanUp(IFile file) {
if (file == null)
return;
@@ -183,6 +188,11 @@
}
}
+ /**
+ * Cleans up the contexts for the project specified
+ *
+ * @param file
+ */
public void cleanUp(IProject project) {
if (project == null)
return;