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 191312 - Code folding snippet viewer stopped to work for 7.0
Summary: Code folding snippet viewer stopped to work for 7.0
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 13:52 UTC by Michel Graciano
Modified: 2010-10-28 11:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code folding for 7.0 (69.36 KB, image/png)
2010-10-25 17:42 UTC, Michel Graciano
Details
Code folding for 6.9 working as expected (71.39 KB, image/png)
2010-10-25 17:44 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2010-10-25 13:52:44 UTC
The code folding snippet viewer stopper to work since last Friday's build. Now it just shows a "line" instead the box with folded code.

Product Version: NetBeans IDE Dev (Build 101025-55f2e678a3f4)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: Linux version 2.6.31-22-generic-pae running on i386; UTF-8; pt_BR (nb)
Comment 1 Michel Graciano 2010-10-25 17:06:34 UTC
Well, I took a look at this to try to figure out what caused the regression and maybe write a patch but I was unable to fix it but looks like the fix for issue #183219 cause it, probably the changes at org.netbeans.modules.editor.lib2.view.DocumentView or org.netbeans.modules.editor.fold.FoldView. I hope this can help.
Comment 2 Michel Graciano 2010-10-25 17:42:21 UTC
Created attachment 102622 [details]
Code folding for 7.0

Ok, I can make it work, not as I really expect, just reverting the changeset [1].
BTW, I will attach a screenshot reflecting what we had had until 6.9 (it is broken at 6.9.1 too).

[1] http://hg.netbeans.org/main/rev/d401b5edcbfc
Comment 3 Michel Graciano 2010-10-25 17:44:10 UTC
Created attachment 102623 [details]
Code folding for 6.9 working as expected

Well, I get this image from issue #189233. It shows a code folding as we expect, it is shown at left side of editor as well with line numbers. Please, make the code folding as before :)

Thanks a lot
Comment 4 Miloslav Metelka 2010-10-27 13:05:28 UTC
http://hg.netbeans.org/jet-main/rev/af1eb929a589
Comment 5 Quality Engineering 2010-10-28 02:51:21 UTC
Integrated into 'main-golden', will be available in build *201010280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/af1eb929a589
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #191312 - Code folding snippet viewer stopped to work for 7.0.
Comment 6 Michel Graciano 2010-10-28 11:21:38 UTC
v. Build 101028-050c46d18859

The problem is gone but the preview is not good as it was before. I file a new issue soon about this things. Thanks