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 178879 - Hints configuration changes value on single mouse click
Summary: Hints configuration changes value on single mouse click
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 15:54 UTC by liono
Modified: 2010-01-11 23:31 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 liono 2009-12-18 15:54:36 UTC
When going to Tools -> Options -> Editor -> Hints and selecting the Java language you'll notice that any option available ("Standard warnings", "Error fixes", "Braces") will check or un-check the checkbox whenever you click somewhere on the text of the option.

I think this is a terrible behavior since most options have more configurable options than merely the on / off switch.  For example "Javadoc -> Create Javadoc" allows you to change the scope, the way its displayed, etc.

With this current behavior of always toggling the current setting it becomes too tedious to fine tune these settings.


The reason why I filed this under Java is because this behavior only happens when changing the hints section for Java. As soon as I try changing any other language the settings are back to normal; I can click on the word and only select it /or/ I can directly toggle the option by clicking on the checkbox.
Comment 1 Max Sauer 2009-12-19 03:37:46 UTC
Sorry, this is as designed and result of fixes 168680 and 123952. Thanks for your report anyway, I'll discuss this with UI guys... For now, I'm marking this as wontfix.
Comment 2 Jan Lahoda 2009-12-19 13:58:06 UTC
Sorry Max, but I agree with the reporter of this bug (and disagree with the reporter of bug #168680).

It makes sense to click on the items in the tree without changing the on/off state - one might want to read the hint description or change its configuration without actually changing the on/off state (e.g. deciding whether the hint should be enabled or disabled based on the description of the hint).

I think that the fix for #168680 should be reverted (and I think we should consider including the revert in 6.8 patch 1).
Comment 3 David Strupl 2009-12-21 03:14:34 UTC
I agree with Jan.
Comment 4 Jan Lahoda 2010-01-11 08:18:31 UTC
http://hg.netbeans.org/jet-main/rev/299fa8b839e6
Comment 5 Quality Engineering 2010-01-11 23:31:29 UTC
Integrated into 'main-golden', will be available in build *201001120200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/299fa8b839e6
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #178879: clicking on hint names should not toggle their state (only the checkbox should) - backout of 9666ee8c8a78