public class GenModelGeneratorAdapter extends GenBaseGeneratorAdapter
GeneratorAdapter for instances of GenModel. This contributes the model level artifacts to EMF's
default code generation.
This implementation should not be extended merely to augment the default code generation for models. The
recommended approach is to implement a new adapter and register the adapter factory
that creates it, so that it is contributed to code generation. Such registration is usually done through the
org.eclipse.emf.codegen.ecore.generatorAdapters extension point.
This implementation may be extended, however, in order to remove from or change the default code generation.
AbstractGeneratorAdapter.AttributeData, AbstractGeneratorAdapter.ExtensionData, AbstractGeneratorAdapter.JETEmitterDescriptorAdapter.Internal| Modifier and Type | Field and Description |
|---|---|
protected static int |
ADVISOR_ID |
protected static int |
EDIT_BUILD_PROPERTIES_ID |
protected static int |
EDIT_MANIFEST_MF_ID |
protected static int |
EDIT_MODULE_GWT_XML_ID |
protected static int |
EDIT_PLUGIN_CLASS_ID |
protected static int |
EDIT_PLUGIN_IMAGES_INTERFACE_ID |
protected static int |
EDIT_PLUGIN_PROPERTIES_ID |
protected static int |
EDIT_PLUGIN_PROPERTIES_INTERFACE_ID |
protected static int |
EDIT_PLUGIN_XML_ID |
protected static int |
EDITOR_APPENGINE_WEB_XML_ID |
protected static int |
EDITOR_BUILD_PROPERTIES_ID |
protected static int |
EDITOR_ENTRY_POINT_CLASS_ID |
protected static int |
EDITOR_HOME_HMTL_ID |
protected static int |
EDITOR_MANIFEST_MF_ID |
protected static int |
EDITOR_MODULE_GWT_XML_ID |
protected static int |
EDITOR_PLUGIN_CLASS_ID |
protected static int |
EDITOR_PLUGIN_PROPERTIES_ID |
protected static int |
EDITOR_PLUGIN_XML_ID |
protected static int |
EDITOR_WEB_XML_ID |
protected static int |
MODEL_BUILD_PROPERTIES_ID |
protected static int |
MODEL_MANIFEST_MF_ID |
protected static int |
MODEL_MODULE_GWT_XML_ID |
protected static int |
MODEL_PLUGIN_CLASS_ID |
protected static int |
MODEL_PLUGIN_PROPERTIES_ID |
protected static int |
MODEL_PLUGIN_XML_ID |
protected static int |
MODEL_TEST_SUITE_ID |
protected static int |
TESTS_BUILD_PROPERTIES_ID |
protected static int |
TESTS_MANIFEST_MF_ID |
protected static int |
TESTS_PLUGIN_PROPERTIES_ID |
protected static int |
TESTS_PLUGIN_XML_ID |
EDIT_PROJECT_TYPE, EDITOR_PROJECT_TYPE, MODEL_PROJECT_TYPE, TESTS_PROJECT_TYPEadapterFactory, BLANK_LINES_PATTERN, CONTINUATION_PATTERN, EXTENSION_POINT_PATTERN, GENERATED_PATTERN, generatingObject, gifEmitters, HEADER_PATTERN, importManager, jetEmitters, lineDelimiter, MANIFEST_ENCODING, message, OBJECT_ARGUMENT, PLUGIN_END_TAG_PATTERN, PROPERTIES_ENCODING, uriConverter, VERSION_PATTERNtargets| Constructor and Description |
|---|
GenModelGeneratorAdapter(GeneratorAdapterFactory generatorAdapterFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected Diagnostic |
doPreGenerate(java.lang.Object object,
java.lang.Object projectType)
Prepares the
GenModel for generation. |
protected void |
generateAdvisor(GenModel genModel,
Monitor monitor) |
protected Diagnostic |
generateEdit(java.lang.Object object,
Monitor monitor) |
protected void |
generateEditBuildProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateEditManifest(GenModel genModel,
Monitor monitor) |
protected void |
generateEditModule(GenModel genModel,
Monitor monitor) |
protected Diagnostic |
generateEditor(java.lang.Object object,
Monitor monitor) |
protected void |
generateEditorAppEngineWebXML(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorBuildProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorEntryPointClass(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorHomeHTML(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorManifest(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorModule(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorPluginClass(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorPluginProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateEditorWebXML(GenModel genModel,
Monitor monitor) |
protected void |
generateEditPluginClass(GenModel genModel,
Monitor monitor) |
protected void |
generateEditPluginImagesInterface(GenModel genModel,
Monitor monitor) |
protected void |
generateEditPluginProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateEditPluginPropertiesInterface(GenModel genModel,
Monitor monitor) |
protected Diagnostic |
generateModel(java.lang.Object object,
Monitor monitor) |
protected void |
generateModelBuildProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateModelManifest(GenModel genModel,
Monitor monitor) |
protected void |
generateModelModule(GenModel genModel,
Monitor monitor) |
protected void |
generateModelPluginClass(GenModel genModel,
Monitor monitor) |
protected void |
generateModelPluginProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateModelTestSuite(GenModel genModel,
Monitor monitor) |
protected Diagnostic |
generateTests(java.lang.Object object,
Monitor monitor) |
protected void |
generateTestsBuildProperties(GenModel genModel,
Monitor monitor) |
protected void |
generateTestsManifest(GenModel genModel,
Monitor monitor) |
protected void |
generateTestsPluginProperties(GenModel genModel,
Monitor monitor) |
java.util.Collection<?> |
getGenerateChildren(java.lang.Object object,
java.lang.Object projectType)
Returns the
GenModel's packages. |
protected AbstractGeneratorAdapter.JETEmitterDescriptor[] |
getJETEmitterDescriptors()
Returns the set of
JETEmitterDescriptors used by the adapter. |
void |
notifyChanged(Notification notification)
Does nothing; clients may override so that it does something.
|
addBaseTemplatePathEntries, addClasspathEntries, canGenerate, canGenerateEdit, canGenerateEditor, canGenerateModel, canGenerateTests, clearImportManager, createImportManager, doGenerate, ensureProjectExists, getGenerateEditChildren, getGenerateEditorChildren, getGenerateModelChildren, getGenerateTestsChildren, getParent, getUserTemplatePath, setLineDelimitercreateCodeFormatter, createGIFEmitter, createInputStream, createJETEmitter, createMonitor, createOutputStream, doPostGenerate, ensureContainerExists, exists, formatCode, formatCode, generate, generateGIF, generateJava, generateProperties, generateText, getAdapterFactory, getAttributeData, getCanGenerateChildren, getCanGenerateParent, getContents, getEncoding, getExtensionData, getGenerateParent, getGenerator, getGIFEmitter, getImportManager, getJETEmitter, getLineDelimiter, getLineDelimiter, getURIConverter, isAdapterForType, isReadOnly, mergeManifest, mergePluginXML, organizeImports, postGenerate, preGenerate, setAdapterFactory, setStaticTemplateClass, setStaticTemplateClass, setWriteable, shouldMerge, toDiagnostic, toPlatformResourceURI, toURI, validateEditdispose, getTarget, setTarget, unsetTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeprotected static final int MODEL_PLUGIN_CLASS_ID
protected static final int MODEL_MANIFEST_MF_ID
protected static final int MODEL_PLUGIN_XML_ID
protected static final int MODEL_PLUGIN_PROPERTIES_ID
protected static final int MODEL_BUILD_PROPERTIES_ID
protected static final int EDIT_PLUGIN_CLASS_ID
protected static final int EDIT_MANIFEST_MF_ID
protected static final int EDIT_PLUGIN_XML_ID
protected static final int EDIT_PLUGIN_PROPERTIES_ID
protected static final int EDIT_BUILD_PROPERTIES_ID
protected static final int EDITOR_PLUGIN_CLASS_ID
protected static final int EDITOR_MANIFEST_MF_ID
protected static final int EDITOR_PLUGIN_XML_ID
protected static final int EDITOR_PLUGIN_PROPERTIES_ID
protected static final int EDITOR_BUILD_PROPERTIES_ID
protected static final int ADVISOR_ID
protected static final int MODEL_TEST_SUITE_ID
protected static final int TESTS_MANIFEST_MF_ID
protected static final int TESTS_PLUGIN_XML_ID
protected static final int TESTS_PLUGIN_PROPERTIES_ID
protected static final int TESTS_BUILD_PROPERTIES_ID
protected static final int MODEL_MODULE_GWT_XML_ID
protected static final int EDIT_MODULE_GWT_XML_ID
protected static final int EDIT_PLUGIN_PROPERTIES_INTERFACE_ID
protected static final int EDIT_PLUGIN_IMAGES_INTERFACE_ID
protected static final int EDITOR_WEB_XML_ID
protected static final int EDITOR_APPENGINE_WEB_XML_ID
protected static final int EDITOR_MODULE_GWT_XML_ID
protected static final int EDITOR_HOME_HMTL_ID
protected static final int EDITOR_ENTRY_POINT_CLASS_ID
public GenModelGeneratorAdapter(GeneratorAdapterFactory generatorAdapterFactory)
protected AbstractGeneratorAdapter.JETEmitterDescriptor[] getJETEmitterDescriptors()
JETEmitterDescriptors used by the adapter. The contents of the returned array
should never be changed. Rather, subclasses may override this method to return a different array altogether.public java.util.Collection<?> getGenerateChildren(java.lang.Object object,
java.lang.Object projectType)
GenModel's packages.getGenerateChildren in interface GeneratorAdaptergetGenerateChildren in class GenBaseGeneratorAdapterprotected Diagnostic doPreGenerate(java.lang.Object object, java.lang.Object projectType)
GenModel for generation.doPreGenerate in class AbstractGeneratorAdapterprotected Diagnostic generateModel(java.lang.Object object, Monitor monitor)
generateModel in class GenBaseGeneratorAdapterprotected void generateModelPluginClass(GenModel genModel, Monitor monitor)
protected void generateModelPluginProperties(GenModel genModel, Monitor monitor)
protected void generateModelBuildProperties(GenModel genModel, Monitor monitor)
protected Diagnostic generateEdit(java.lang.Object object, Monitor monitor)
generateEdit in class GenBaseGeneratorAdapterprotected void generateEditPluginPropertiesInterface(GenModel genModel, Monitor monitor)
protected void generateEditPluginImagesInterface(GenModel genModel, Monitor monitor)
protected void generateEditPluginProperties(GenModel genModel, Monitor monitor)
protected void generateEditBuildProperties(GenModel genModel, Monitor monitor)
protected Diagnostic generateEditor(java.lang.Object object, Monitor monitor)
generateEditor in class GenBaseGeneratorAdapterprotected void generateEditorPluginClass(GenModel genModel, Monitor monitor)
protected void generateEditorEntryPointClass(GenModel genModel, Monitor monitor)
protected void generateEditorPluginProperties(GenModel genModel, Monitor monitor)
protected void generateEditorBuildProperties(GenModel genModel, Monitor monitor)
protected void generateEditorAppEngineWebXML(GenModel genModel, Monitor monitor)
protected Diagnostic generateTests(java.lang.Object object, Monitor monitor)
generateTests in class GenBaseGeneratorAdapterprotected void generateTestsPluginProperties(GenModel genModel, Monitor monitor)
protected void generateTestsBuildProperties(GenModel genModel, Monitor monitor)
public void notifyChanged(Notification notification)
SingletonAdapterImplnotifyChanged in interface AdapternotifyChanged in class SingletonAdapterImplnotification - a description of the change.