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 121124

Summary: Duplicated options in basic and advanced options
Product: java Reporter: Karthikeyan Rajeswaran <krajeswaran>
Component: EditorAssignee: Vitezslav Stejskal <vstejskal>
Status: CLOSED FIXED    
Severity: blocker CC: bleonard
Priority: P3 Keywords: SIMPLEFIX
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Karthikeyan Rajeswaran 2007-11-04 20:26:52 UTC
1. 'Tools | Options | Advanced Options | Options | Editing | Indentation Engines | Java Indentation Engine' property
panel has the following options, which are also available in 'Tools | Options':
   Expand tabs to spaces (also available in 'Tools | Options | Editor | Indentation' )
   Add newline before brace (also available in 'Tools | Options | Java Code | Alignment and Braces' category)
   Add space before parentheses (also available in 'Tools | Options | Java Code | Spaces' category)
   Statement Continuation Indent (also available in 'Tools | Options | Java Code | Indents' category)
   Number of spaces per indent (also available in 'Tools | Options | Editor | Indentation' )

Perhaps they should be removed from advanced options. (It is not clear what the behaviour will be if the settings in
both options and advanced options are modified by the user...)

2. 'Tools | Options | Advanced Options | Options | Editing | Indentation Engines | Java Indentation Engine' has a
property 'Add Leading star in comment' that does not seem to be available in basic options dialog. This option should be
kept in advanced options and respected (so as not to have a regression) or moved to basic options.

Discussed at http://www.netbeans.org/servlets/BrowseList?list=nbusers&by=thread&from=817834
Comment 1 Jan Lahoda 2007-11-04 20:41:21 UTC
I do not have the Java Indentation Engine in the Advanced Options (only through Editor/Java/Indent Engine, which is a
bit cumbersome), but I do not do import from 5.5, which may be the difference.

I think that (ideally) the JIE should be removed altogether.

The most important problem described here, IMO, is the "Add Leading star in comment".

Not for NB6.0, IMO.
Comment 2 Karthikeyan Rajeswaran 2007-11-04 21:02:56 UTC
I did not import settings too. In fact I see JIE in advanced options when I run NB6-beta2 after deleting my userdir:
   Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710212201)
   Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
   System: SunOS version 5.10 running on sparc; ISO646-US; en (nb)
Perhaps JIE has been removed in a later build. If so, this bug can be marked as fixed.

There is still the problem with 'Leading * in comment' ; the issue was raised in
http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=102355. I think this bug should be kept open until it is
resolved. (Or please inform if a separate issue should be filed for leading-star issue so that this bug can be closed).
Comment 3 William Leonard 2007-11-16 15:55:28 UTC
Even worse is that the duplicated options to not appear to be in sync. For example, setting Add New Line Before Brace in
the Java Indentation Engine has no effect if the Braces Placement option does not also indicate "New Line".
Comment 4 Dusan Balek 2008-02-11 18:03:31 UTC
*** Issue 127024 has been marked as a duplicate of this issue. ***
Comment 5 Dusan Balek 2008-03-13 14:56:31 UTC
Java Indentation Engine and its obsolete options are still accessible via Advanced Options -> Editing -> Editor Settings
-> DTD Editor -> Indentation Engine -> [...] -> Java Indentation Engine.

Vita, is it possible to remove the Java Indentation Engine form Tools-> Options at all?
Comment 6 Vitezslav Stejskal 2008-03-14 09:23:57 UTC
I'll have a look.
Comment 7 Vitezslav Stejskal 2008-03-15 08:45:32 UTC
http://hg.netbeans.org/main/rev/0f36545778ed
Comment 8 Karthikeyan Rajeswaran 2009-01-11 20:55:37 UTC
v