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.

Bug 148947 - Code Templates: add template 'systrace'
Summary: Code Templates: add template 'systrace'
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 3 votes (vote)
Assignee: Dusan Balek
Depends on: 160042 210454
  Show dependency tree
Reported: 2008-10-02 11:59 UTC by desmond_kirrane
Modified: 2015-03-28 08:20 UTC (History)
2 users (show)

See Also:
Exception Reporter:

Proposed patch (1.03 KB, patch)
2015-03-26 22:56 UTC, markiewb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description desmond_kirrane 2008-10-02 11:59:07 UTC
In Eclipse there is a code template systrace:

It adds to the System.out the name of the class and method you are working in.

In the NetBeans Editor a similar code template is not available and it doesn't seem possible to create one?
I can't find a parameter to get the Class name or Method name.

Any enhancement to the code template editor or adding in a systrace type template would be a nice enhacement.
Comment 1 Vitezslav Stejskal 2008-10-02 13:07:06 UTC
What abbreviation is it linked to in Eclipse? I mean what do you type in the Eclipse editor to make it expand the
template? Thanks
Comment 2 Vitezslav Stejskal 2008-10-03 11:19:23 UTC
From the reporter in a private email: "In any method in the Editor type systrace and then hit Ctrl+Space"
Comment 3 markiewb 2013-06-20 12:52:00 UTC
${enclosing_type} ->
${enclosing_method} ->
Comment 4 Dusan Balek 2013-06-20 15:57:28 UTC
Unfortunately NB 7.4 is already feature frozen. Marking as an enhancement for
the next release.
Comment 5 markiewb 2013-11-28 21:38:07 UTC
@Dusan: There are patches for both of the "depends on" issues available. 
If they are integrated this issue can be fixed by providing a new code template.
Comment 6 markiewb 2015-03-26 22:56:54 UTC
Created attachment 152871 [details]
Proposed patch

@Dusan: Please review that patch and apply it. *g* Thank you
Comment 7 Dusan Balek 2015-03-27 09:41:15 UTC
Patch integrated. Thanks.
Comment 8 Quality Engineering 2015-03-28 08:20:23 UTC
Integrated into 'main-silver', will be available in build *201503280001* on (upload may still be in progress)

User: Dusan Balek <>
Log: Issue #148947: Code Templates: add template 'systrace' - fixed.