Author: scabanovich
Date: 2011-04-11 17:55:54 -0400 (Mon, 11 Apr 2011)
New Revision: 30492
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java
Log:
JBIDE-8712
https://issues.jboss.org/browse/JBIDE-8712
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java 2011-04-11
21:54:00 UTC (rev 30491)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/CDISeamConfigExtension.java 2011-04-11
21:55:54 UTC (rev 30492)
@@ -22,6 +22,7 @@
import org.jboss.tools.cdi.core.extension.ICDIExtension;
import org.jboss.tools.cdi.core.extension.IDefinitionContextExtension;
import org.jboss.tools.cdi.core.extension.feature.IBuildParticipantFeature;
+import org.jboss.tools.cdi.internal.core.scanner.FileSet;
import org.jboss.tools.cdi.seam.config.core.definition.SeamBeansDefinition;
import org.jboss.tools.cdi.seam.config.core.scanner.ConfigFileSet;
import org.jboss.tools.cdi.seam.config.core.scanner.SeamDefinitionBuilder;
@@ -92,15 +93,19 @@
document.set(text);
SeamBeansDefinition def = builder.createDefinition(document, project);
if(isSeamBeans) {
- context.addSeamBeanXML(p, def);
+ context.getWorkingCopy().addSeamBeanXML(p, def);
} else {
- context.addBeanXML(p, def);
+ context.getWorkingCopy().addBeanXML(p, def);
}
}
}
//TODO
}
+ public void buildDefinitions(FileSet fileSet) {
+ //nothing to do
+ }
+
public void buildBeans() {
//TODO
}
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java 2011-04-11
21:54:00 UTC (rev 30491)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.seam.config.core/src/org/jboss/tools/cdi/seam/config/core/ConfigDefinitionContext.java 2011-04-11
21:55:54 UTC (rev 30492)
@@ -64,6 +64,7 @@
beanXMLs = workingCopy.beanXMLs;
seambeanXMLs = workingCopy.seambeanXMLs;
+ workingCopy = null;
}
public void clean() {
@@ -92,7 +93,7 @@
return root;
}
- public IDefinitionContextExtension getWorkingCopy() {
+ public ConfigDefinitionContext getWorkingCopy() {
if(original != null) {
return this;
}