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 106450

Summary: Ability to insert into guarded blocks
Product: editor Reporter: _ tboudreau <tboudreau>
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ tboudreau 2007-06-13 04:18:34 UTC
We don't allow code editing in guarded blocks.  Fine.  But we could actually allow *insertion* of new lines into guarded blocks.  It would take some careful 
bookkeeping, but we could allow the user to place the caret, press enter and type lines in between those lines in the guarded blocks.  That might resolve 
some of the frustration about them.
Comment 1 Miloslav Metelka 2007-06-13 12:58:11 UTC
A relatively easy change on the editor side but IMHO a considerable complication for the maintainers of the guarded
sections e.g. a form editor. Instead of a simple regeneration of the whole section they would have to retain the
user-inserted code by making diffs between old and new code etc.