Author: scabanovich
Date: 2009-04-30 12:41:31 -0400 (Thu, 30 Apr 2009)
New Revision: 14981
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:22:05 UTC (rev 14980)
+++
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)
@@ -99,7 +99,9 @@
} else if(javaSource instanceof IMethod) {
SeamXMLHelper.saveMethod(element, (IMethod)javaSource, TAG_JAVA_SOURCE, context);
} else if(javaSource instanceof IType) {
- SeamXMLHelper.saveType(element, (IType)javaSource, TAG_JAVA_SOURCE, context);
+ Element ce = XMLUtilities.createElement(parent, TAG_JAVA_SOURCE);
+ element.setAttribute(SeamXMLConstants.ATTR_CLASS, SeamXMLConstants.CLS_TYPE);
+ SeamXMLHelper.saveType(ce, (IType)javaSource, context);
}
return element;