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 75505

Summary: Using abbreviations in macros.
Product: editor Reporter: Bernard Halas <bernard_halas>
Component: MacrosAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Bernard Halas 2006-04-25 16:06:26 UTC
NB 200604241800
JDK 1.6 beta2-b81

If I use abbreviaton when recording macro, the abbreviation is correctly
transformed in the editor, but incorrectly (not at all) understood by macro
recorder.
Steps to reproduce:

1) start macro recording
2) type "sout"
3) press space and "sout" is transformed into "System.out.println("|")"
4) type "echo" between the brackets
5) end macro recording
6) assign an unused shortcut to macro and name it
7) try to initiate the macro with the shortcut you just used
8) compare the results

Macro generates string "soutecho" instead of "System.out.println("echo")".
Comment 1 Vitezslav Stejskal 2006-12-19 22:15:26 UTC
Reproducible in the current main trunk. You can check the macro code in the
Tools->Options->Editor->Macros, it says "soutecho", but should probably be
something like "sout" expand-code-template "echo".
Comment 2 Jiri Prox 2008-02-20 15:54:44 UTC

*** This issue has been marked as a duplicate of 63608 ***