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 115983 - [60cat]creating new file does not honour formatting options
Summary: [60cat]creating new file does not honour formatting options
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 64587 110200 116816 119895 187543 (view as bug list)
Depends on:
Blocks: 184923
  Show dependency tree
 
Reported: 2007-09-19 13:03 UTC by dynamite
Modified: 2011-02-16 09:55 UTC (History)
6 users (show)

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 dynamite 2007-09-19 13:03:36 UTC
[ BUILD # : 200709141330 ]
[ JDK VERSION : 1.6.2 ]

The bracket placement formatting option defined 
for class is ignored when creating a new class.  
Similarly the bracket placement is also ignored 
for the constructor in JUnit tests, although 
other methods are okay.
Comment 1 Jan Pokorsky 2007-09-20 14:41:04 UTC
The indent engine performs differently for new java files in NB 6.0. It seems to be a regression. Should not the
IndentEngine delegate to Reformat from editor/indent instead of Indent API?
Comment 2 Miloslav Metelka 2007-09-20 22:24:13 UTC
I need to fix the wrapping infrastructure to implement the IndentEngine.createWriter() properly. I'll fix it ASAP.
Comment 3 Jiri Prox 2007-09-26 14:16:11 UTC
*** Issue 116816 has been marked as a duplicate of this issue. ***
Comment 4 Jan Pokorsky 2007-10-17 17:46:07 UTC
*** Issue 110200 has been marked as a duplicate of this issue. ***
Comment 5 Lukas Hasik 2008-04-10 21:36:52 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 Sergey Petrov 2009-04-13 10:55:42 UTC
looks like there is no brackets option in 6.7m3, so the issue look invalide now.
Comment 7 Jan Pokorsky 2009-04-14 14:13:57 UTC
Really? I can still find Tools/Options/Editor/Formatting, language: Java and category: Braces. Reopening.
Comment 8 Sergey Petrov 2009-04-15 12:28:21 UTC
thanks, for complete path to the option, and the issue is reproducible with 6.7m3
Comment 9 Vitezslav Stejskal 2010-05-04 12:22:43 UTC
*** Bug 64587 has been marked as a duplicate of this bug. ***
Comment 10 Vitezslav Stejskal 2010-05-04 12:22:55 UTC
*** Bug 119895 has been marked as a duplicate of this bug. ***
Comment 11 Vitezslav Stejskal 2010-05-04 12:23:50 UTC
I think this actually does not work for any file type, not just java.
Comment 12 Dusan Balek 2010-11-01 09:56:37 UTC
*** Bug 187543 has been marked as a duplicate of this bug. ***