Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » GRAVE: Error in Component of type org.eclipse.xpand2.Generator: (i'm trying to adapt OAW4 project to OAW5.)
icon9.gif  GRAVE: Error in Component of type org.eclipse.xpand2.Generator: [message #493502] Mon, 26 October 2009 14:48 Go to next message
dtcm  is currently offline dtcm Friend
Messages: 3
Registered: October 2009
Junior Member
Hi there !

i'm totally newbie to "OAW" and Eclipse.

i'm trying to adapt OAW4 project to OAW5.

pls find next the console errors , the workflow, and the beginning of the template.

it's like the "IMPORT field" wasn't recognized.



Console Errors :

26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: (c) 2005-2009 openarchitectureware.org and contributors
26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: --------------------------------------------------------------------------------------
26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: running workflow: C:/Projects/Migration/Workspace/Components/src/workflow/CreateProgUnload.mwe
26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
INFO: 
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.utils.StandaloneSetup setPlatformUri
INFO: Registering platform uri 'C:\Projects\Migration\Workspace'
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Reader(modelReader): Loading model from platform:/resource/Components/src/model/table/T28616.xmi
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: CheckComponent: slot model check file(s): metamodel::table 
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
INFO: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/
26 oct. 2009 13:55:34 org.eclipse.xtend.typesystem.emf.EClassType getContributedFeatures
ATTENTION: Couldn't resolve type for Field
26 oct. 2009 13:55:34 org.eclipse.xtend.typesystem.emf.EClassType getContributedFeatures
ATTENTION: Couldn't resolve type for Field
26 oct. 2009 13:55:34 org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent invokeInternal
GRAVE: Error in Component  of type org.eclipse.xpand2.Generator: 
	EvaluationException : Couldn't find property 'field' for inner type table::Column'
	templates::TemplateProg.xpt[3563,5] on line 86 'this.columns.field'          
	templates::TemplateProg.xpt[551,28] on line 22 'EXPAND dataDivision FOR this'
	templates::TemplateProg.xpt[293,28] on line 12 'EXPAND templateProg FOR this'
	[23,57] on line 1 'EXPAND templates::TemplateProg::templateGeneral FOR model'

26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner executeWorkflow
GRAVE: Workflow interrupted. Reason: Couldn't find property 'field' for inner type table::Column'
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: this.columns.field; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: this.columns.field.sapiensOutSize; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: calculTailleClasse(this.columns.field.sapiensOutSize); Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: EXPRESSION: calculTailleClasse(this.columns.field.sapiensOutSize); Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: dataDivision : Table; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: EXPAND dataDivision FOR this; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: org.eclipse.internal.xpand2.ast.FileStatement@c44b88; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: org.eclipse.internal.xpand2.ast.LetStatement@13ad33d; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: templateProg : Table; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: EXPAND templateProg FOR this; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: org.eclipse.internal.xpand2.ast.IfStatement@102799c; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: org.eclipse.internal.xpand2.ast.IfStatement@17e121c; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: org.eclipse.internal.xpand2.ast.IfStatement@1d6f122; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: templateGeneral : Table; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)
26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
GRAVE: [ERROR]: Couldn't find property 'field' for inner type table::Column'(Element: EXPAND templates::TemplateProg::templateGeneral FOR model; Reported by: Generator: generating 'templates::TemplateProg::templateGeneral FOR model' => ../Components/src-gen/)



Workflow

<?xml version="1.0"?>                                                    
<workflow>                                                               
	<property name="model" value="Components/src/model/table/T28616.xmi" />
	<property name="workspace-folder" value="../Components/src-gen/" />    
	                                                                       
	<!-- set up EMF for standalone execution -->                           
	<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" >              
		<platformUri value=".."/>                                            
	</bean>                                                                
                                                                         
	<!-- load model and store it in slot 'model' -->                      
 	<component id="modelReader" class="org.eclipse.emf.mwe.utils.Reader">  
		<uri value="platform:/resource/${model}" />                          
		<useSingleGlobalResourceSet value="false" />                         
		<modelSlot value="model" />                                          
	</component>                                                           
                                                                         
	<!-- check model -->                                                   
	<component class="org.eclipse.xtend.check.CheckComponent">             
		<metaModel id="mm"                                                   
			class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel"/>    
            <checkFile value="metamodel::table" />                       
		<emfAllChildrenSlot value="model" />                                 
	</component>                                                           
                                                                         
	<!--  generate code -->                                                
	<component class="org.eclipse.xpand2.Generator">                       
		<metaModel idRef="mm"/>                                              
		<expand                                                              
			value="templates::TemplateProg::templateGeneral FOR model" />      
		<outlet path="${workspace-folder}" >                                 
		</outlet>                                                            
		<globalVarDef name ="typeGeneration" value="'ALL'" />                
	</component>                                                           
</workflow>                                                              




Template

«IMPORT table»
«IMPORT field»

«EXTENSION templates::VariablesExtensions»

«DEFINE templateGeneral FOR Table»
	«IF typeGeneration() == 'COB'»
		«EXPAND templateProg FOR this»
	«ELSEIF typeGeneration() == 'JCL'»
		«EXPAND templateJCL FOR this»
	«ELSEIF typeGeneration() == 'ALL'»
		«EXPAND templateProg FOR this»
		«EXPAND templateJCL FOR this»
	«ENDIF»
«ENDDEFINE»

«DEFINE templateProg FOR Table»
	«LET srcCobGen() + name +".cob" AS progName»
	«FILE progName»
		«EXPAND identDivision FOR this»
		«EXPAND envDivision FOR this»
		«EXPAND dataDivision FOR this»
		«EXPAND procDivision FOR this»
	«ENDFILE»
	«ENDLET»
«ENDDEFINE»

etc...



Thanks a lot


[Updated on: Fri, 30 October 2009 10:59]

Report message to a moderator

Re: ATTENTION: Couldn't resolve type for Field... [message #494365 is a reply to message #493502] Fri, 30 October 2009 12:16 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi dtcm,

please be more careful with the subject of your posts. Uppercase
ATTENTION is likely to be ignored for obvious reasons.

How does the original, working oaw workflow look like?
Does it contain any registered metamodel?
I guess you should try to use registerGeneratedEPackage to load the
field and table metamodel.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


dtcm schrieb:
> Hi there !
>
> i'm totally newbie to "OAW" and Eclipse.
>
> i'm trying to adapt OAW4 project to OAW5.
>
> pls find next the console errors , the workflow, and the beginning of
> the template.
>
> it's like the "IMPORT field" wasn't recognized.
>
>
>
> Console Errors :
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: EMF Modeling Workflow Engine 0.7.2, Build v200908120417
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: (c) 2005-2009 openarchitectureware.org and contributors
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO:
> ------------------------------------------------------------ --------------------------
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: running workflow:
> C:/Projects/Migration/Workspace/Components/src/workflow/Crea teProgUnload.mwe
>
> 26 oct. 2009 13:55:33 org.eclipse.emf.mwe.core.WorkflowRunner prepare
> INFO: 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.utils.StandaloneSetup
> setPlatformUri
> INFO: Registering platform uri 'C:\Projects\Migration\Workspace'
> 26 oct. 2009 13:55:34
> org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
> INFO: Reader(modelReader): Loading model from
> platform:/resource/Components/src/model/table/T28616.xmi
> 26 oct. 2009 13:55:34
> org.eclipse.emf.mwe.core.container.CompositeComponent internalInvoke
> INFO: CheckComponent: slot model check file(s): metamodel::table 26 oct.
> 2009 13:55:34 org.eclipse.emf.mwe.core.container.CompositeComponent
> internalInvoke
> INFO: Generator: generating 'templates::TemplateProg::templateGeneral
> FOR model' => ../Components/src-gen/
> 26 oct. 2009 13:55:34 org.eclipse.xtend.typesystem.emf.EClassType
> getContributedFeatures
> ATTENTION: Couldn't resolve type for Field
> 26 oct. 2009 13:55:34 org.eclipse.xtend.typesystem.emf.EClassType
> getContributedFeatures
> ATTENTION: Couldn't resolve type for Field
> 26 oct. 2009 13:55:34
> org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflo wComponent
> invokeInternal
> GRAVE: Error in Component of type org.eclipse.xpand2.Generator:
> EvaluationException : Couldn't find property 'field' for inner type
> table::Column'
> templates::TemplateProg.xpt[3563,5] on line 86
> 'this.columns.field' templates::TemplateProg.xpt[551,28] on
> line 22 'EXPAND dataDivision FOR this'
> templates::TemplateProg.xpt[293,28] on line 12 'EXPAND templateProg
> FOR this'
> [23,57] on line 1 'EXPAND templates::TemplateProg::templateGeneral
> FOR model'
>
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner
> executeWorkflow
> GRAVE: Workflow interrupted. Reason: Couldn't find property 'field' for
> inner type table::Column'
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: this.columns.field; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: this.columns.field.sapiensOutSize; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> calculTailleClasse(this.columns.field.sapiensOutSize); Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPRESSION:
> calculTailleClasse(this.columns.field.sapiensOutSize); Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: dataDivision : Table; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPAND dataDivision FOR this; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.FileStatement@c44b88; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.LetStatement@13ad33d; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: templateProg : Table; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPAND templateProg FOR this; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.IfStatement@102799c; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.IfStatement@17e121c; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element:
> org.eclipse.internal.xpand2.ast.IfStatement@1d6f122; Reported by:
> Generator: generating 'templates::TemplateProg::templateGeneral FOR
> model' => ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: templateGeneral : Table; Reported by: Generator:
> generating 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
> 26 oct. 2009 13:55:34 org.eclipse.emf.mwe.core.WorkflowRunner logIssues
> GRAVE: [ERROR]: Couldn't find property 'field' for inner type
> table::Column'(Element: EXPAND templates::TemplateProg::templateGeneral
> FOR model; Reported by: Generator: generating
> 'templates::TemplateProg::templateGeneral FOR model' =>
> ../Components/src-gen/)
>
>
>
> Workflow
>
> <?xml version="1.0"?>
> <workflow>
> <property name="model" value="Components/src/model/table/T28616.xmi" />
> <property name="workspace-folder" value="../Components/src-gen/"
> />
>
> <!-- set up EMF for standalone execution
> --> <bean
> class="org.eclipse.emf.mwe.utils.StandaloneSetup" >
> <platformUri value=".."/>
> </bean>
>
> <!-- load model and store it in slot 'model'
> --> <component id="modelReader"
> class="org.eclipse.emf.mwe.utils.Reader"> <uri
> value="platform:/resource/${model}" />
> <useSingleGlobalResourceSet value="false" />
> <modelSlot value="model"
> />
> </component>
>
> <!-- check model
> --> <component
> class="org.eclipse.xtend.check.CheckComponent">
> <metaModel id="mm"
>
> class="org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel "/>
> <checkFile value="metamodel::table" />
> <emfAllChildrenSlot value="model"
> />
> </component>
>
> <!-- generate code
> --> <component
> class="org.eclipse.xpand2.Generator">
> <metaModel idRef="mm"/>
>
> <expand
> value="templates::TemplateProg::templateGeneral FOR model"
> /> <outlet path="${workspace-folder}"
> >
> </outlet>
> <globalVarDef name ="typeGeneration" value="'ALL'"
> />
> </component>
> </workflow>
>
>
> Template
>
> «IMPORT table»
> «IMPORT field»
>
> «EXTENSION templates::VariablesExtensions»
>
> «DEFINE templateGeneral FOR Table»
> «IF typeGeneration() == 'COB'»
> «EXPAND templateProg FOR this»
> «ELSEIF typeGeneration() == 'JCL'»
> «EXPAND templateJCL FOR this»
> «ELSEIF typeGeneration() == 'ALL'»
> «EXPAND templateProg FOR this»
> «EXPAND templateJCL FOR this»
> «ENDIF»
> «ENDDEFINE»
>
> «DEFINE templateProg FOR Table»
> «LET srcCobGen() + name +".cob" AS progName»
> «FILE progName»
> «EXPAND identDivision FOR this»
> «EXPAND envDivision FOR this»
> «EXPAND dataDivision FOR this»
> «EXPAND procDivision FOR this»
> «ENDFILE»
> «ENDLET»
> «ENDDEFINE»
>
> etc...
>
>
>
> Thanks a lot
>
>
>
Re: ATTENTION: Couldn't resolve type for Field... [message #494411 is a reply to message #494365] Fri, 30 October 2009 14:40 Go to previous messageGo to next message
dtcm  is currently offline dtcm Friend
Messages: 3
Registered: October 2009
Junior Member
Hi Sebastian,

pls find here the original workflow :


http://www.imageshotel.org/images/dtcmdtcm/packagetree.jpg


<?xml version="1.0"?>
<workflow>
	<property name="model" value="Components/src/model/table/T28616.xmi" />
	<property name="workspace-folder" value="../Components/src-gen/" />
	
	<!-- set up EMF for standalone execution -->
	<bean class="org.eclipse.mwe.emf.StandaloneSetup" >
		<platformUri value=".."/>
	</bean>

	<!-- load model and store it in slot 'model' -->

	<component class="ch.sofismo.emf.Reader">

		<uri value="platform:/resource/${model}" />
		<modelSlot value="model" />
	</component>

	<!-- check model -->
	<component class="oaw.check.CheckComponent">
		<metaModel id="mm"
			class="org.eclipse.m2t.type.emf.EmfRegistryMetaModel"/>
		<checkFile value="metamodel::table" />
		<emfAllChildrenSlot value="model" />
	</component>  
    
	<!--  generate code -->
	<component class="org.openarchitectureware.xpand2.Generator">
		<metaModel idRef="mm"/>
		<expand
			value="templates::TemplateProg::templateGeneral FOR model" />
		<outlet path="${workspace-folder}" >
		</outlet>
		<globalVarDef name ="typeGeneration" value="'ALL'" />
	</component>
</workflow>



ps: Uppercase ATTENTION is likely to be ignored for obvious reasons. --> sorry i didn't understand what you mean.


Tak
dtcm
Re: GRAVE: Error in Component of type org.eclipse.xpand2.Generator: [message #495199 is a reply to message #493502] Wed, 04 November 2009 07:23 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Quote:
ps: Uppercase ATTENTION is likely to be ignored for obvious reasons. --> sorry i didn't understand what you mean.

Sebastian meant that posts with "shouting" headlines are the first that are ignored by supporters. Such posts won't be treated with priority, the opposite is the case. If you get an answer on a post most depends on how easy, clear and reproducable your post is written. If you need priority answers you need professional support, which developers can offer you.

~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: GRAVE: Error in Component of type org.eclipse.xpand2.Generator: [message #495201 is a reply to message #493502] Wed, 04 November 2009 07:30 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

I think your problem arises from the case that the type Field referenced by Columns::fields is defined in an external Ecore model and that the typesystem does not resolve the proxy and therefore does not know that Field has a property 'column'.

Try registering the ecore files to the StandaloneSetup:

<bean class="org.eclipse.mwe.emf.StandaloneSetup" >
  <platformUri value=".."/>
  <registerEcoreFile value="platform:/resource/...../table.ecore"/>
  <registerEcoreFile value="platform:/resource/...../field.ecore"/>
</bean>



HTH,
~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: GRAVE: Error in Component of type org.eclipse.xpand2.Generator: [message #495626 is a reply to message #495201] Thu, 05 November 2009 14:31 Go to previous message
dtcm  is currently offline dtcm Friend
Messages: 3
Registered: October 2009
Junior Member
Hi Karsten,

Quote:
Sebastian meant that posts with "shouting" headlines are the first that are ignored by supporters. Such posts won't be treated with priority, the opposite is the case. If you get an answer on a post most depends on how easy, clear and reproducable your post is written. If you need priority answers you need professional support, which developers can offer you.



I've just copy/paste the generated message from the console ;
far from me such idea, sorry for the inconvenience. I didn't mean doing wrong... Rolling Eyes


To return to my Generator problem, your solution works perfectly.
a simple question : why should we have to add these references
(registerEcoreFile) now in this version, and not needed in OAW before ?

is there some user's guide like for OAW ?


Tak
dtcm
Previous Topic:[Xpand] Problem with creating model elements from Java
Next Topic:Dealing with mixed types in XPAND for XSD
Goto Forum:
  


Current Time: Tue Oct 15 01:19:23 GMT 2024

Powered by FUDForum. Page generated in 0.04227 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top