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 40104 - [65cat] code folding does not allow to collaps commented code
Summary: [65cat] code folding does not allow to collaps commented code
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker with 4 votes (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 53404 (view as bug list)
Depends on:
Blocks: 47638
  Show dependency tree
 
Reported: 2004-02-13 22:14 UTC by Pavel Buzek
Modified: 2016-07-07 07:25 UTC (History)
2 users (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 Pavel Buzek 2004-02-13 22:14:23 UTC
/*
 public void foo () {
   for (int i = 0; i< 10; i++) {
     System.out.printline ("hello");
  }
 }
 */

I would expecte to have a fold around this but
there is none.
Comment 1 Martin Roskanin 2004-02-15 08:51:16 UTC
...because the commented method is no longer in java source hierarchy. 
We will provide user defined folds in the promo D
Comment 2 psuk 2004-03-23 18:30:01 UTC
Changing subcomponent to "code folding"
Comment 3 ulfzibis 2004-08-21 17:45:12 UTC
Output should look like:
/*... public void foo () { ...*/

not:
/*...*/
Comment 4 Roman Strobl 2005-01-21 12:18:47 UTC
Obsolete target milestone, changed to TBD. Please re-evaluate.
Comment 5 Martin Roskanin 2005-02-02 13:53:35 UTC
*** Issue 53404 has been marked as a duplicate of this issue. ***
Comment 6 ulfzibis 2008-09-02 13:28:35 UTC
Labelled with [65cat] to draw attention on his issue.

Also line comments should be considered:

  public void foo () {
//    for (int i = 0; i< 10; i++) {
//      System.out.println ("hello");
//    }
    for (int i = 0; i< 10; i++) {
      System.out.println ("world");
    }
  }

Comment 7 Jan Lahoda 2008-09-29 13:28:01 UTC
I do not think comments folding should be done on a per-language basis:
-folding of multi-line (block) comments can be done for all languages without much support from the language (except
setting primary token category to "comment", which needs to be done anyway)
-folding of multiple line comments may require that the language lets the infra now somehow that a comment token
represents a line comment, e.g. token id == LINE_COMMENT or a particular secondary category is set.
Comment 8 Martin Balin 2016-07-07 07:25:53 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