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 72758

Summary: Code folding for pre-processor blocks
Product: javame Reporter: ieising <ieising>
Component: FragmentationAssignee: Karol Harezlak <kharezlak>
Status: NEW ---    
Severity: blocker CC: paulo.arras
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description ieising 2006-02-17 07:45:57 UTC
Hi,

It would be great if the inactive preprocessor blocks would be folded in
addition to use a different color-scheme.

Iwan
Comment 1 ieising 2006-02-17 07:48:30 UTC
This was obviously not a defect but I think an enhancement of the preprocessor
editing.
Comment 2 Lukas Hasik 2006-02-17 09:41:42 UTC
it can be used only when you are creating the PP block with menu action

you'll have to type it by yourself when you're writing PP blocks by hand
Use following syntax:
//<editor-fold>
        //#ifdef DefaultConfiguration 
//#     ...your code here
//# //</editor-fold>

IMO, I don't think it is useful. There is limitation that editor-fold cannot be
on the same line like preprocessor directive. 

Leaving for deeper evaluation by developers.

It could be useful when everything could be on the same line like
//#ifdef DefaultConfiguration <editor-fold> 

Is there any different way how to fold it? Like class or method in editor?
Comment 3 Lukas Hasik 2006-06-23 14:34:58 UTC
moving to mobility component
Comment 4 Lukas Hasik 2007-01-05 10:20:16 UTC
*** Issue 71364 has been marked as a duplicate of this issue. ***