415552 : Add pom.xml templates for m2e-* specific properties
Signed-off-by: Fred Bricon <fbricon@gmail.com>
diff --git a/org.eclipse.m2e.wtp.jpa/plugin.properties b/org.eclipse.m2e.wtp.jpa/plugin.properties
index 6d9387e..f1b0b05 100644
--- a/org.eclipse.m2e.wtp.jpa/plugin.properties
+++ b/org.eclipse.m2e.wtp.jpa/plugin.properties
@@ -4,3 +4,5 @@
jpa_project_configurator_wtp = JPA configurator for WTP projects
jpa_enabler_label=JPA Configurator
jpa_enabler_description=The JPA Configurator adds the JPA Facet if a persistence.xml is found.
+template.jpaActivationProperty.name=m2e-wtp JPA activation
+template.jpaActivationProperty.description=Enable or disable automatic JPA configuration
\ No newline at end of file
diff --git a/org.eclipse.m2e.wtp.jpa/plugin.xml b/org.eclipse.m2e.wtp.jpa/plugin.xml
index ed00f71..3ce7f0f 100644
--- a/org.eclipse.m2e.wtp.jpa/plugin.xml
+++ b/org.eclipse.m2e.wtp.jpa/plugin.xml
@@ -36,4 +36,12 @@
</facetDetector>
</extension>
+ <extension point="org.eclipse.ui.editors.templates">
+ <template id="org.eclipse.m2e.wtp.jpa.xml.templates.jpaActivationProperty"
+ contextTypeId="org.eclipse.m2e.editor.xml.templates.contextType.properties"
+ name="%template.jpaActivationProperty.name"
+ description="%template.jpaActivationProperty.description">
+ <pattern><m2e.jpa.activation>${cursor}${false}</m2e.jpa.activation></pattern>
+ </template>
+ </extension>
</plugin>