diff options
author | Thomas Schindl | 2010-07-24 17:54:58 +0000 |
---|---|---|
committer | Thomas Schindl | 2010-07-24 17:54:58 +0000 |
commit | 5562d9b561cd5fabe5041663ce9afd6b452441e0 (patch) | |
tree | 6ad8f385d83cdf70ca6d99f4581a0a1e20d58d94 | |
parent | b9f0ab66c038f942fe385b55e3356a7bb8fbc7c3 (diff) | |
download | org.eclipse.e4.tools-5562d9b561cd5fabe5041663ce9afd6b452441e0.tar.gz org.eclipse.e4.tools-5562d9b561cd5fabe5041663ce9afd6b452441e0.tar.xz org.eclipse.e4.tools-5562d9b561cd5fabe5041663ce9afd6b452441e0.zip |
Bug 320819 - [ModelTooling] Generated canExecute() should return value
-rw-r--r-- | bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/HandlerTemplate.java | 2 | ||||
-rw-r--r-- | bundles/org.eclipse.e4.tools/templates/handler.txtjet | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/HandlerTemplate.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/HandlerTemplate.java index ddf80d91..70ec397a 100644 --- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/HandlerTemplate.java +++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/HandlerTemplate.java @@ -21,7 +21,7 @@ public class HandlerTemplate protected final String TEXT_5 = " {" + NL + "\t@Execute" + NL + "\tpublic void "; protected final String TEXT_6 = "() {" + NL + "\t\t//TODO Your code goes here" + NL + "\t}" + NL + "\t"; protected final String TEXT_7 = NL + "\t" + NL + "\t@CanExecute" + NL + "\tpublic boolean "; - protected final String TEXT_8 = "() {" + NL + "\t\t//TODO Your code goes here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_8 = "() {" + NL + "\t\t//TODO Your code goes here" + NL + "\t\treturn true;" + NL + "\t}" + NL + "\t"; protected final String TEXT_9 = "\t" + NL + "}"; public String generate(Object argument) diff --git a/bundles/org.eclipse.e4.tools/templates/handler.txtjet b/bundles/org.eclipse.e4.tools/templates/handler.txtjet index 27c7d75d..7dfd8fd6 100644 --- a/bundles/org.eclipse.e4.tools/templates/handler.txtjet +++ b/bundles/org.eclipse.e4.tools/templates/handler.txtjet @@ -17,6 +17,7 @@ public class <%= domainClass.getName() %> { @CanExecute public boolean <%= domainClass.getCanExecuteMethodName() %>() { //TODO Your code goes here + return true; } <% } %> }
\ No newline at end of file |