Author: scabanovich
Date: 2009-10-16 04:06:55 -0400 (Fri, 16 Oct 2009)
New Revision: 18120
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
Log:
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java 2009-10-16
00:15:15 UTC (rev 18119)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java 2009-10-16
08:06:55 UTC (rev 18120)
@@ -49,8 +49,10 @@
import org.jboss.tools.jst.web.kb.internal.taglib.FacesConfigTagLibrary;
import org.jboss.tools.jst.web.kb.internal.taglib.TLDLibrary;
import org.jboss.tools.jst.web.kb.internal.taglib.composite.CompositeTagLibrary;
+import org.jboss.tools.jst.web.kb.internal.validation.ProjectValidationContext;
import org.jboss.tools.jst.web.kb.taglib.ICustomTagLibrary;
import org.jboss.tools.jst.web.kb.taglib.ITagLibrary;
+import org.jboss.tools.jst.web.kb.validation.IValidationContext;
import org.w3c.dom.Element;
/**
@@ -75,6 +77,9 @@
LibraryStorage libraries = new LibraryStorage();
+ ProjectValidationContext validationContext;
+
+ public KbProject() {}
/*
* (non-Javadoc)
* @see org.jboss.tools.jst.web.kb.IKbProject#getTagLibraries()
@@ -251,6 +256,10 @@
if(b) {
getClassPath().process();
}
+
+ if(root != null) {
+ getValidationContext().load(root);
+ }
} finally {
fireChanges();
@@ -323,6 +332,8 @@
storeProjectDependencies(root);
storeSourcePaths2(root);
+
+ if(validationContext != null) validationContext.store(root);
XMLUtilities.serialize(root, file.getAbsolutePath());
}
@@ -341,6 +352,12 @@
if(f != null && f.isFile()) f.delete();
}
+ public IValidationContext getValidationContext() {
+ if(validationContext == null) {
+ validationContext = new ProjectValidationContext();
+ }
+ return validationContext;
+ }
/*
*
*/