|Re: [EEF] Custom Toolkit Widgets [message #662097 is a reply to message #622996]
||Tue, 29 March 2011 09:44
Registered: August 2010
I know that this topic is a bit old but I'm facing the same problem, so I hope someone could give a solution
I'm trying to add a custom SWT Widget in the EEF generation process. So thanks to the previous message, I managed to create a .toolkits model in which I added my widget. Then I loaded this resource in the .components model and I am now able to select my widget in the representation field.
I also coded the 4 templates (xxControl, xxGettersSetters, xxSWTImpl, xxFormImpl), taking example on org.eclipse.emf.eef.codegen.widgets.impl.text templates.
But when I try to generate the project code thanks to my .eefgen model, some errors raise and I am not able to produce what I want.
Error: Problem while Organize Imports : project_path.edit/src-gen/class_using_my_widget.java
In the generated code there are many messages like:
public //FIXME ERROR INVALID CASE INTO template public toJavaType(view : ViewElement) in common.mtl module for representation EMigPropertyEditor getValue();
public void setValue(//FIXME ERROR INVALID CASE INTO template public toJavaType(view : ViewElement) in common.mtl module for representation EMigPropertyEditor newValue);
//FIXME INVALID CASE INTO template public widgetDeclaration(editor : ElementEditor) in viewFormUtils.mtl module
//FIXME INVALID CASE INTO template public implementation(editor : ViewElement, pec : PropertiesEditionComponent) in viewUtils.mtl module
So if someone has any idea ...
Thanks in advance
[Updated on: Thu, 31 March 2011 14:17]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02530 seconds