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 180212 - Incorrect code-formatting when generating code using CodeTemplateManager
Summary: Incorrect code-formatting when generating code using CodeTemplateManager
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-02-03 06:48 UTC by David Kaspar
Modified: 2011-05-16 13:50 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 David Kaspar 2010-02-03 06:48:04 UTC
When using the following code:

String code = "    function a():Void {\n        a();\n    }\n";
CodeTemplateManager.get(styledDocument).createTemporary(code).insert(editorPane);

The line with "}" is incorrectly formatted - shifted by 8 characters to the right.
Comment 1 Martin Ryzl 2010-10-21 11:55:03 UTC
.
Comment 2 David Strupl 2011-05-16 13:50:41 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.