diff options
author | Dmitry Spiridenok | 2014-03-22 14:19:42 +0000 |
---|---|---|
committer | Dmitry Spiridenok | 2014-03-22 14:19:42 +0000 |
commit | f15ff588b0b953bf95e424dfdd6a37c5f3ed0d79 (patch) | |
tree | 261826fcb0c47dee9b5d48e77e65b155c36c774c | |
parent | a670d891f14225ec7fef98426e235b750d049c68 (diff) | |
download | org.eclipse.e4.tools-f15ff588b0b953bf95e424dfdd6a37c5f3ed0d79.tar.gz org.eclipse.e4.tools-f15ff588b0b953bf95e424dfdd6a37c5f3ed0d79.tar.xz org.eclipse.e4.tools-f15ff588b0b953bf95e424dfdd6a37c5f3ed0d79.zip |
Bug 430100 - Remove //TODO from the classes generated with the e4I20140324-2200
wizards
Change-Id: I76594fd13df576235361743f31eb421cf49be7d0
Signed-off-by: Dmitry Spiridenok <d.spiridenok@gmail.com>
6 files changed, 18 insertions, 18 deletions
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/DynamicMenuContributionTemplate.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/DynamicMenuContributionTemplate.java index aa531af4..20a79b84 100644 --- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/DynamicMenuContributionTemplate.java +++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/DynamicMenuContributionTemplate.java @@ -21,9 +21,9 @@ public class DynamicMenuContributionTemplate protected final String TEXT_5 = NL + "import org.eclipse.e4.ui.di.AboutToHide;"; protected final String TEXT_6 = NL + NL + "import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement;" + NL + "" + NL + "public class "; protected final String TEXT_7 = " {" + NL + "\t@AboutToShow" + NL + "\tpublic void "; - protected final String TEXT_8 = "(List<MMenuElement> items) {" + NL + "\t\t//TODO Your code goes here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_8 = "(List<MMenuElement> items) {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_9 = NL + "\t" + NL + "\t@AboutToHide" + NL + "\tpublic void "; - protected final String TEXT_10 = "(List<MMenuElement> items) {" + NL + "\t\t//TODO Your code goes here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_10 = "(List<MMenuElement> items) {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_11 = "\t" + NL + "}"; public String generate(Object argument) 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 f94d6cdb..f9cfd2ce 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,9 +21,9 @@ public class HandlerTemplate protected final String TEXT_5 = NL + "import org.eclipse.e4.core.di.annotations.CanExecute;"; protected final String TEXT_6 = NL + NL + "public class "; protected final String TEXT_7 = " {" + NL + "\t@Execute" + NL + "\tpublic void "; - 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" + NL + "\t}" + NL + "\t"; protected final String TEXT_9 = NL + "\t" + NL + "\t@CanExecute" + NL + "\tpublic boolean "; - protected final String TEXT_10 = "() {" + NL + "\t\t//TODO Your code goes here" + NL + "\t\treturn true;" + NL + "\t}" + NL + "\t"; + protected final String TEXT_10 = "() {" + NL + "\t\t" + NL + "\t\treturn true;" + NL + "\t}" + NL + "\t"; protected final String TEXT_11 = "\t" + NL + "}"; public String generate(Object argument) diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/PartTemplate.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/PartTemplate.java index 7a189160..20843b98 100644 --- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/PartTemplate.java +++ b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/classes/templates/PartTemplate.java @@ -24,18 +24,18 @@ public class PartTemplate protected final String TEXT_8 = NL + "import org.eclipse.e4.ui.di.Persist;"; protected final String TEXT_9 = NL + NL + "public class "; protected final String TEXT_10 = " {" + NL + "\t@Inject" + NL + "\tpublic "; - protected final String TEXT_11 = "() {" + NL + "\t\t//TODO Your code here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_11 = "() {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_12 = NL + "\t@PostConstruct" + NL + "\tpublic void "; - protected final String TEXT_13 = "(Composite parent) {" + NL + "\t\t//TODO Your code here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_13 = "(Composite parent) {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_14 = NL + "\t"; protected final String TEXT_15 = NL + "\t@PreDestroy" + NL + "\tpublic void "; - protected final String TEXT_16 = "() {" + NL + "\t\t//TODO Your code here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_16 = "() {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_17 = NL + "\t"; protected final String TEXT_18 = NL + "\t@Focus" + NL + "\tpublic void "; - protected final String TEXT_19 = "() {" + NL + "\t\t//TODO Your code here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_19 = "() {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_20 = NL + "\t"; protected final String TEXT_21 = NL + "\t@Persist" + NL + "\tpublic void "; - protected final String TEXT_22 = "() {" + NL + "\t\t//TODO Your code here" + NL + "\t}" + NL + "\t"; + protected final String TEXT_22 = "() {" + NL + "\t\t" + NL + "\t}" + NL + "\t"; protected final String TEXT_23 = NL + "}"; public String generate(Object argument) diff --git a/bundles/org.eclipse.e4.tools/templates/dynamicMenuContribution.txtjet b/bundles/org.eclipse.e4.tools/templates/dynamicMenuContribution.txtjet index 832f703f..3567f49c 100644 --- a/bundles/org.eclipse.e4.tools/templates/dynamicMenuContribution.txtjet +++ b/bundles/org.eclipse.e4.tools/templates/dynamicMenuContribution.txtjet @@ -16,13 +16,13 @@ import org.eclipse.e4.ui.model.application.ui.menu.MMenuElement; public class <%= domainClass.getName() %> { @AboutToShow public void <%= domainClass.getAboutToShowMethodName() %>(List<MMenuElement> items) { - //TODO Your code goes here + } <% if( domainClass.isUseAboutToHide() ) { %> @AboutToHide public void <%= domainClass.getAboutToHideMethodName() %>(List<MMenuElement> items) { - //TODO Your code goes here + } <% } %> }
\ No newline at end of file diff --git a/bundles/org.eclipse.e4.tools/templates/handler.txtjet b/bundles/org.eclipse.e4.tools/templates/handler.txtjet index e425325e..cd2f8208 100644 --- a/bundles/org.eclipse.e4.tools/templates/handler.txtjet +++ b/bundles/org.eclipse.e4.tools/templates/handler.txtjet @@ -12,13 +12,13 @@ import org.eclipse.e4.core.di.annotations.CanExecute; public class <%= domainClass.getName() %> { @Execute public void <%= domainClass.getExecuteMethodName() %>() { - //TODO Your code goes here + } <% if( domainClass.isUseCanExecute() ) { %> @CanExecute public boolean <%= domainClass.getCanExecuteMethodName() %>() { - //TODO Your code goes here + return true; } <% } %> diff --git a/bundles/org.eclipse.e4.tools/templates/part.txtjet b/bundles/org.eclipse.e4.tools/templates/part.txtjet index a7106134..a51b59d5 100644 --- a/bundles/org.eclipse.e4.tools/templates/part.txtjet +++ b/bundles/org.eclipse.e4.tools/templates/part.txtjet @@ -22,30 +22,30 @@ import org.eclipse.e4.ui.di.Persist; public class <%= domainClass.getName() %> { @Inject public <%= domainClass.getName() %>() { - //TODO Your code here + } <% if( domainClass.isUsePostConstruct() ) { %> @PostConstruct public void <%= domainClass.getPostConstructMethodName() %>(Composite parent) { - //TODO Your code here + } <% } %> <% if( domainClass.isUsePredestroy() ) { %> @PreDestroy public void <%= domainClass.getPreDestroyMethodName() %>() { - //TODO Your code here + } <% } %> <% if( domainClass.isUseFocus() ) { %> @Focus public void <%= domainClass.getFocusMethodName() %>() { - //TODO Your code here + } <% } %> <% if( domainClass.isUsePersist() ) { %> @Persist public void <%= domainClass.getPersistMethodName() %>() { - //TODO Your code here + } <% } %> }
\ No newline at end of file |