Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[qvtd-dev] Test plugin genmodels

Hi

Multi-model plugins are hazardous but particularly useful for test plugins that may have many test models.

If such plugins are used in plugin tests, the plugin.xml declarations are liable to make standalone and plugin execution diverge, often resulting in a metamodel schizophrenic CCE when a model is loaded.

I have being using a perverse form of @Generated NOT to manually silence the unwanted plugin.xml registrations that are automatically added when genmodel is run. There is a better way:

a) Ensure that plugin.xml exists. If it would otherwise be empty, an org.eclipse.core.contenttype.contenttypes allows a null extension point to be defined and so avoid a manifest builder warning.

b) Set bundleManifest false in the genmodel to inhibit modification of MANIFEST.MF

c) Set pluginKey empty in the genmodel to inhibit modification of plugin.xml

    Regards

        Ed Willink


Back to the top