diff options
-rw-r--r-- | bundles/org.eclipse.e4.tools.jdt.templates/templates/default-e4templates.xml | 10 |
1 files changed, 8 insertions, 2 deletions
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 4f546a4c..89f06bb5 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 @@ public void execute() { ${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> |