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 104314 - Use hand cursor over code folding +/-
Summary: Use hand cursor over code folding +/-
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords: PATCH_AVAILABLE
Depends on:
Blocks:
 
Reported: 2007-05-18 20:12 UTC by cahrens
Modified: 2016-07-16 16:55 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Mockup of plus/minus icon emphasis in fold sidebar (3.19 KB, image/png)
2013-01-22 12:43 UTC, Petr Somol
Details
Patch for plus/minus icon emphasis in fold sidebar (1.48 KB, patch)
2013-03-12 21:31 UTC, markiewb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cahrens 2007-05-18 20:12:24 UTC
When the mouse is over the code folding +/- symbol in the gutter, it would be 
nice if it changed to the hand cursor so that the user knows that he/she can 
click there.
Comment 1 Vitezslav Stejskal 2007-05-21 02:06:29 UTC
Sounds like a good idea to me.
Comment 2 Svata Dedic 2012-12-11 12:15:45 UTC
Petre - what is the UI recommendation for such an indicator ? Do we have a specific mouse cursor indicator anywhere in the IDE ? If introduced, it should probably apply to more features, not just folding.
Comment 3 Petr Somol 2013-01-22 12:43:16 UTC
Created attachment 130483 [details]
Mockup of plus/minus icon emphasis in fold sidebar

AFAIK we do not change the cursor depending on context in NB, except perhaps when reorganizing toolbars. 
What we commonly do is mark somehow the focus of the underlying component. In NB7.3 Svata added such focus emphasis to folds - the folding line underneath the cursor gets thicker. Combining this with a change of cursor to hand or so does not make sense any more.

However, this folding emphasis now works only for unfolded folds, because for the folded ones there is no line to emphasize, and the plus/minus icon is currently not emphasized. There is perhaps room for improvement in this. Svata, would you agree that emphasizing the plus or minus icon when mouse is over it would make sense ? I am attaching a mockup showing that the thickening of icons is possible to the inside without affecting the plus/minus sign. This would effectively resolve this enhancement issue.

I also gave thought to the possibility to use the whole fold line to accept a click (to invoke close-fold action), but is does not sound like a good idea to me. Users could probably click there by accident and unwanted folding of a fold would be very annoying. Opinions ?
Comment 4 markiewb 2013-03-12 21:31:00 UTC
Created attachment 132539 [details]
Patch for plus/minus icon emphasis in fold sidebar

(In reply to comment #3)
> Created attachment 130483 [details]
> Mockup of plus/minus icon emphasis in fold sidebar
> 
Patch for this is attached.

> 
> I also gave thought to the possibility to use the whole fold line to accept a
> click (to invoke close-fold action), but is does not sound like a good idea to
> me. Users could probably click there by accident and unwanted folding of a fold
> would be very annoying. Opinions ?

Currently it works with doubleclick. Perhaps there should be a tooltip, so that the user will notice this feature.
Comment 5 Martin Balin 2016-07-07 07:30:03 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 6 markiewb 2016-07-10 18:41:57 UTC
Still valid in 8.2 dev 
Product Version: NetBeans IDE Dev (Build 201607100002)