Author: scabanovich
Date: 2011-10-28 17:10:48 -0400 (Fri, 28 Oct 2011)
New Revision: 36079
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java
Log:
JBIDE-9244
https://issues.jboss.org/browse/JBIDE-9244
Provided loading of validation context in dependent projects.
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 2011-10-28
20:44:46 UTC (rev 36078)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/KbProject.java 2011-10-28
21:10:48 UTC (rev 36079)
@@ -281,6 +281,7 @@
if(load) {
load();
} else {
+ loadValidationContext();
isStorageResolved = true;
}
}
@@ -340,6 +341,17 @@
}
+ void loadValidationContext() {
+ File file = getStorageFile();
+ Element root = null;
+ if(file != null && file.isFile()) {
+ root = XMLUtilities.getElement(file, null);
+ if(root != null) {
+ getValidationContext().load(root);
+ }
+ }
+ }
+
public void clean() {
File file = getStorageFile();
if(file != null && file.isFile()) {