[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: add .xpt template
|
Alex Shatalin a Ãcrit :
Hello Aurelien,
Looks like specified template was not found by code generation process.
You've used xpt::propsheet::PropertySource::Class template for
GenDiagram input.
This means there should be xpt/propsheet/PropertySource.xpt file with
appropriate definition in one of the template roots.
By default GMF generator load all the templates from GMF plugins (you
probably can not add your template there) + customized templates from
the "template directory" (specified by corresponding property of
GenEditorGenerator) if GenEditorGenerator.Dynamic template property was
set to true.
So, can you please check that:
- GenEditorGenerator.template directory =
"/<projectName>/<templateDirectoryName>"
- GenEditorGenerator.dynamic template = "true"
done for this 2 things (and i'm sure it works because an existing and
changed templates is used)
- xpt/propsheet/PropertySource.xpt is available in
/<projectName>/<templateDirectoryName> folder.
right too
- there is corresponding definition inside this template file.
the definiton :
ÂDEFINE Class FOR gmfgen::GenCustomPropertyTabÂ
ÂEXPAND xpt::Common::copyright FOR sheet.editorGen-Â
package Âsheet.packageNameÂ;
ÂEXPAND xpt::Common::generatedClassCommentÂ
public class PropertySourceExtended extends
org.eclipse.emf.edit.ui.provider.PropertySource implements
org.eclipse.ui.views.properties.IPropertySource{
ÂEXPAND PropertySourceExtendedConstructorÂ
ÂEXPAND createPropertyDescriptorMethodÂ
}
ÂENDDEFINEÂ
[...]
I use GMF SDK 2.1.3, not supported in this version?
-----------------
Alex Shatalin