mbien commented on code in PR #3458:
URL: https://github.com/apache/netbeans/pull/3458#discussion_r918836194
##########
java/java.source/src/org/netbeans/modules/java/source/package-info.java:
##########
@@ -20,10 +20,11 @@
@TemplateRegistrations({
@TemplateRegistration(folder = "Classes/Code", position = 100, content =
"resources/GeneratedMethodBody.template", scriptEngine = "freemarker",
displayName = "#GeneratedMethodBody", category = "java-code-snippet"),
@TemplateRegistration(folder = "Classes/Code", position = 200, content =
"resources/OverriddenMethodBody.template", scriptEngine = "freemarker",
displayName = "#OverriddenMethodBody", category = "java-code-snippet"),
- @TemplateRegistration(folder = "Classes/Code", position = 300, content =
"resources/LambdaBody.template", scriptEngine = "freemarker", displayName =
"#LambdaBody", category = "java-code-snippet")
+ @TemplateRegistration(folder = "Classes/Code", position = 300, content =
"resources/LambdaBody.template", scriptEngine = "freemarker", displayName =
"#LambdaBody", category = "java-code-snippet"),
+ @TemplateRegistration(folder = "Classes/Code", position = 400, content =
"resources/LambdaExpression.template", scriptEngine = "freemarker", displayName
= "#LambdaExpression", category = "java-code-snippet")
})
@NbBundle.Messages({
- "GeneratedMethodBody=Generated Method Body",
"OverriddenMethodBody=Overridden Method Body", "LambdaBody=Generated Lambda
Body" //NOI18N
+ "GeneratedMethodBody=Generated Method Body",
"OverriddenMethodBody=Overridden Method Body", "LambdaBody=Generated Lambda
Body", "LambdaExpression=Generated Lambda Expression" //NOI18N
})
Review Comment:
> "simple to (boolean) false in order to hide templates from the list shown
in the standard wizards"
oh wow @neilcsmith-net to the rescue. Thats what I tried to find since
January. But to my defense, I only yesterday realized that there are more
attributes than those which are defined in the `TemplateRegistration`
annotation. I thought thats all there is.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists