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.
In Eclipse there is a code template systrace: System.out.println("${enclosing_type}.${enclosing_method}()"); 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.
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
From the reporter in a private email: "In any method in the Editor type systrace and then hit Ctrl+Space"
${enclosing_type} -> https://netbeans.org/bugzilla/show_bug.cgi?id=210454 ${enclosing_method} -> https://netbeans.org/bugzilla/show_bug.cgi?id=160042
Unfortunately NB 7.4 is already feature frozen. Marking as an enhancement for the next release.
@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.
Created attachment 152871 [details] Proposed patch @Dusan: Please review that patch and apply it. *g* Thank you
Patch integrated. Thanks. http://hg.netbeans.org/jet-main/rev/ea17034016bc
Integrated into 'main-silver', will be available in build *201503280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ea17034016bc User: Dusan Balek <dbalek@netbeans.org> Log: Issue #148947: Code Templates: add template 'systrace' - fixed.