Author: scabanovich
Date: 2007-07-17 10:22:31 -0400 (Tue, 17 Jul 2007)
New Revision: 2469
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java
Log:
EXIN-217 source path put to factory
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java 2007-07-17
14:08:26 UTC (rev 2468)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/ComponentBuilder.java 2007-07-17
14:22:31 UTC (rev 2469)
@@ -67,7 +67,6 @@
component.setId(visitor.type);
component.setClassName(n);
- process();
}
void process() {
@@ -124,7 +123,10 @@
ValueInfo autoCreate = ValueInfo.getValueInfo(a, "autoCreate");
SeamAnnotatedFactory factory = new SeamAnnotatedFactory();
- factory.setSourceMember(findMethod(m));
+ IMethod im = findMethod(m);
+ factory.setSourceMember(im);
+ factory.setId(im);
+ factory.setSourcePath(component.getSourcePath());
factory.setName(factoryName);
if(autoCreate != null) factory.setAutoCreate(true);
if(scope != null) {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java 2007-07-17
14:08:26 UTC (rev 2468)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java 2007-07-17
14:22:31 UTC (rev 2469)
@@ -130,6 +130,8 @@
b.component.setSourcePath(sourcePath);
b.component.setResource(resource);
+
+ b.process();
}
}