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 59066 - Preferences for custom editor-fold
Summary: Preferences for custom editor-fold
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-19 15:26 UTC by arittner
Modified: 2016-07-16 16:24 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arittner 2005-05-19 15:26:03 UTC
Hi!

IMHO the flag defaultstate="collapsed" for the editor-fold is not very usefull.
The default should be "collapsed" not expanded. Or, the better solution is to
customize the option in Tools -> Options -> Editor Settings -> Java Editor ->
Code Folding.

So I need only:

SwingUtilities.invokeLater (new Runnable() { // <editor-fold>
  public void run() {
    // Many code....
  }
}); // </editor-fold>

to collaps the code by default.

best regards,
  josh.
Comment 1 Miloslav Metelka 2005-05-20 17:43:58 UTC
I agree, it makes more sense to have the fold collapsed than expanded when not
mentioned explicitly.
Comment 2 Martin Balin 2016-07-07 07:28:35 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 3 Svata Dedic 2016-07-13 12:27:01 UTC
Reviewing status after bulk issue cleanup