Author: scabanovich
Date: 2009-04-30 13:04:41 -0400 (Thu, 30 Apr 2009)
New Revision: 14982
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaContextVariable.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4068
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaContextVariable.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaContextVariable.java 2009-04-30
16:41:31 UTC (rev 14981)
+++
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/SeamJavaContextVariable.java 2009-04-30
17:04:41 UTC (rev 14982)
@@ -99,8 +99,8 @@
} else if(javaSource instanceof IMethod) {
SeamXMLHelper.saveMethod(element, (IMethod)javaSource, TAG_JAVA_SOURCE, context);
} else if(javaSource instanceof IType) {
- Element ce = XMLUtilities.createElement(parent, TAG_JAVA_SOURCE);
- element.setAttribute(SeamXMLConstants.ATTR_CLASS, SeamXMLConstants.CLS_TYPE);
+ Element ce = XMLUtilities.createElement(element, TAG_JAVA_SOURCE);
+ ce.setAttribute(SeamXMLConstants.ATTR_CLASS, SeamXMLConstants.CLS_TYPE);
SeamXMLHelper.saveType(ce, (IType)javaSource, context);
}