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 240976 - Inconsistent activation/deactivation of Apply button from Editor->Formatting C/C++ Formatting Style
Summary: Inconsistent activation/deactivation of Apply button from Editor->Formatting ...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
: 240965 (view as bug list)
Depends on:
Blocks: 239792
  Show dependency tree
 
Reported: 2014-01-26 15:25 UTC by MackSix
Modified: 2014-02-05 12:50 UTC (History)
2 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 MackSix 2014-01-26 15:25:27 UTC
1. Start NetBeans with clear userdir & cachedir
2. Activate JavaSE, PHP, C/C++ modules.
3. Goto Tools >> Options >> Formatting >> Language: C
4. By default, Category will be "Formatting Style" and Style will be "NetBeans".
5. Check/Uncheck a checkbox and notice the Apply button works as expected.
6. Check all "Category" and the Apply button works as expected.
7. Change Style to Apache and Category to "Formatting Style".
8. Notice the Apply button works as expected.
9. Change Category to "Blank Lines" and notice Apply button works as expected.
Apply button works as expected for all Category under Style: Apache.
10. Change Style to GUNU and notice that Apply button does not work. Change to
any Category except "Formatting Style" and the Apply button does not work
11. Change Category to "Formatting Style" and the Apply button starts working. 
Now the Apply button works for all Category under GUNU.

Even if you change back to Style: NetBeans in step #10, the Apply Button will 
not be working although it worked in earlier steps. This sequence works to 
disable the Apply button the same between any working Style and another style.

This behavior occurs only for Language C, C++ and C/C++ Header.

Product Version: NetBeans IDE Dev (Build 201401240001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2014-01-26 16:05:02 UTC
Still valid in:

Product Version: NetBeans IDE Dev (Build 201401260001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 2 Theofanis Oikonomou 2014-01-27 16:29:24 UTC
Changeset: ba95bc61386c
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-01-27 17:30
Message:
Comment 3 Quality Engineering 2014-01-28 03:04:55 UTC
Integrated into 'main-silver', will be available in build *201401280001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ba95bc61386c
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #240976 - Inconsistent activation/deactivation of Apply button from Editor->Formatting C/C++ Formatting Style
Comment 4 Alexander Simon 2014-02-05 12:50:15 UTC
*** Bug 240965 has been marked as a duplicate of this bug. ***