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

Summary: Incorrect code-formatting when generating code using CodeTemplateManager
Product: javafx Reporter: David Kaspar <dkaspar>
Component: EditorAssignee: Adam Sotona <asotona>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173487    

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.