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 - Using abbreviations in macros.
Summary: Using abbreviations in macros.
Status: RESOLVED DUPLICATE of bug 63608
Alias: None
Product: editor
Classification: Unclassified
Component: Macros (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 16:06 UTC by Bernard Halas
Modified: 2008-02-20 15:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***