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 59002 - Provide code fold region for long field declarations
Summary: Provide code fold region for long field declarations
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 19:30 UTC by Jesse Glick
Modified: 2010-09-23 08:35 UTC (History)
0 users

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 Jesse Glick 2005-05-17 19:30:21 UTC
I commonly have a field decl such as

private static final String[] MODULE_DIRS = {
    "modules",
    "modules/eager",
    "modules/autoload",
    "lib",
    "core",
};

and would like to be able to fold it to concentrate on more important code. But
the Java editor provides no code fold handle in this case. It would be useful.
Of course, not every field decl needs a fold, but I suggest supplying one if
there is an array initializer contained in the decl, or perhaps other complex
structures (e.g. anon inner class).

Workaround would be to manually type in a custom fold declaration, but that is
messy and no one would figure it out.