This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Patch for: Code Templates: add "Java method name" variable | ||
---|---|---|---|
Product: | editor | Reporter: | fommil <fommil> |
Component: | Completion & Templates | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | PATCH_AVAILABLE |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://www.nabble.com/Current-Java-method-name-in-Code-Templates-td22400520.html#a22428960 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 148947 | ||
Attachments: | Proposed patch |
Description
fommil
2009-03-10 20:40:09 UTC
Unfortunately NB 7.4 is already feature frozen. Marking as an enhancement for the next release. Created attachment 142701 [details]
Proposed patch
@Dusan: I like to propose a patch to solve the issue. A new pattern "currMethodName" is introduced. Please review and commit
The code template from the original requester can now be expressed via
${no-indent} throw new UnsupportedOperationException("TODO: implement ${methodName currMethodName editable="false"}()");
Patch applied. Thank you for your contribution. http://hg.netbeans.org/jet-main/rev/71c33275ad13 Integrated into 'main-silver', will be available in build *201405170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/71c33275ad13 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #160042 - Patch for: Code Templates: add "Java method name" variable - applied. |