Bug 476576 - Add CanExecute template for the e4 tools

Change-Id: Ia3fa97224c245890f031b125e4b0c0a9473b5a7a
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.e4.tools.jdt.templates/templates/default-e4templates.xml b/bundles/org.eclipse.e4.tools.jdt.templates/templates/default-e4templates.xml
index 4f546a4..89f06bb 100644
--- a/bundles/org.eclipse.e4.tools.jdt.templates/templates/default-e4templates.xml
+++ b/bundles/org.eclipse.e4.tools.jdt.templates/templates/default-e4templates.xml
@@ -2,7 +2,7 @@
 
 <!--
 /*******************************************************************************
- * Copyright (c) 2010 IBM Corporation and others.
+ * Copyright (c) 2010, 2015 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -10,7 +10,7 @@
  *
  * Contributors:
  *     Boris Bokowski, IBM Corporation - initial API and implementation
- *     Lars Vogel <Lars.Vogel@gmail.com> - Reworked templates
+ *     Lars Vogel <Lars.Vogel@vogella.com> - Ongoing maintenance
  *******************************************************************************/
 -->
 
@@ -71,5 +71,11 @@
 ${imp:import(org.eclipse.e4.core.di.annotations.Execute)}
 </template>
 
+<template name="CanExecute" description="Creates CanExecute method" id="org.eclipse.e4.tools.jdt.templates.canexecute" context="e4-members" enabled="true" autoinsert="false">@CanExecute
+public boolean canExecute() {
+	return true;
+}
+${imp:import(org.eclipse.e4.core.di.annotations.CanExecute)}
+</template>
 
 </templates>