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 114545 - Code folding. All folds get expanded after editing the file.
Summary: Code folding. All folds get expanded after editing the file.
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Egor Ushakov
URL:
Keywords: USABILITY
: 129267 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-03 17:13 UTC by Alexander Pepin
Modified: 2008-03-11 21:47 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 Alexander Pepin 2007-09-03 17:13:54 UTC
Steps to reproduce:
- create any sample project (e.g. Quote)
- open any sourse file in the editor (e.g. cpu.cc)
- right-click on the editor and call "Code Folds->Collapse All"
- move the cursor to the end of file and press enter to add a new line (or type any character)
Result: All the code folds in the file get expanded. Includes and comments above the first code block stay collapsed.
Comments below code block also expands. This behavior is inconvenient and inconsistent with Netbeans.
Comment 1 smansman 2007-12-11 05:54:38 UTC
Current behaviour make code folding unusable.

Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Linux version 2.6.21-1.3194.fc7 running on i386; UTF-8; en_US (nb)
( dunno why it says i386 on the last line, uname -srmpi gives : Linux 2.6.21-1.3194.fc7 x86_64 x86_64 x86_64 )
Comment 2 Alexander Pepin 2007-12-11 14:30:17 UTC
It's a critical usability issue.
Comment 3 Egor Ushakov 2008-01-24 15:46:40 UTC
fixed by commit:
Checking in core/src/org/netbeans/modules/cnd/editor/CppFoldManager.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/editor/CppFoldManager.java,v  <--  CppFoldManager.java
new revision: 1.11; previous revision: 1.10
done
Checking in core/src/org/netbeans/modules/cnd/editor/parser/CppFile.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/editor/parser/CppFile.java,v  <--  CppFile.java
new revision: 1.7; previous revision: 1.6
done
Checking in folding/src/org/netbeans/modules/cnd/folding/APTFoldingParser.java;
/shared/data/ccvs/repository/cnd/folding/src/org/netbeans/modules/cnd/folding/APTFoldingParser.java,v  <-- 
APTFoldingParser.java
new revision: 1.8; previous revision: 1.7
done
Comment 4 soldatov 2008-02-12 08:51:23 UTC
verified in 200802120006 build
Comment 5 Alexander Pepin 2008-03-11 21:47:45 UTC
*** Issue 129267 has been marked as a duplicate of this issue. ***