Author: DartPeng
Date: 2008-09-16 05:33:47 -0400 (Tue, 16 Sep 2008)
New Revision: 10249
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
Log:
change the save logic
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-09-16
09:33:46 UTC (rev 10248)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.javabean/src/org/jboss/tools/smooks/javabean/analyzer/JavaBeanAnalyzer.java 2008-09-16
09:33:47 UTC (rev 10249)
@@ -104,7 +104,7 @@
}
public void analyzeGraphicalModel(AbstractStructuredDataModel root,
- SmooksResourceListType resouceList) {
+ List resouceList) {
List children = root.getChildren();
for (Iterator iterator = children.iterator(); iterator.hasNext();) {
@@ -151,7 +151,7 @@
* @param beanId
*/
protected void analyzeStructuredDataModel(
- SmooksResourceListType resourceList,
+ List resourceList,
AbstractStructuredDataModel root,
AbstractStructuredDataModel dataModel,
ResourceConfigType parentResourceConfigType, String beanId) {
@@ -186,15 +186,15 @@
ResourceConfigType resourceConfig = SmooksFactory.eINSTANCE
.createResourceConfigType();
-
- Command addResourceConfigCommand = AddCommand
- .create(
- editingDomain,
- resourceList,
- SmooksPackage.eINSTANCE
- .getSmooksResourceListType_AbstractResourceConfig(),
- resourceConfig);
- addResourceConfigCommand.execute();
+ resourceList.add(resourceConfig);
+// Command addResourceConfigCommand = AddCommand
+// .create(
+// editingDomain,
+// resourceList,
+// SmooksPackage.eINSTANCE
+// .getSmooksResourceListType_AbstractResourceConfig(),
+// resourceConfig);
+// addResourceConfigCommand.execute();
// resouceConfig.
resourceConfig
.setSelector(getSourceBeanSelectorString((AbstractStructuredDataModel) source));
@@ -356,7 +356,7 @@
throws SmooksAnalyzerException {
GraphRootModel root = context.getDataMappingRootModel();
SmooksResourceListType listType = context.getSmooksResourceListModel();
- this.analyzeGraphicalModel(root, listType);
+ this.analyzeGraphicalModel(root, context.getGeneratorResourceList());
}
public MappingResourceConfigList analyzeMappingSmooksModel(
Show replies by date