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 - Ability to insert into guarded blocks
Summary: Ability to insert into guarded blocks
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-13 04:18 UTC by _ tboudreau
Modified: 2011-09-05 09:33 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 _ 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.