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 99098 - Don't allow to edit guarded blocks
Summary: Don't allow to edit guarded blocks
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: diff-issues@utilities
URL:
Keywords:
: 98642 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-27 11:43 UTC by Marian Mirilovic
Modified: 2007-03-28 10:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack-trace (2.13 KB, text/plain)
2007-03-27 11:44 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2007-03-27 11:43:27 UTC
NetBeans IDE Dev (Build 200703261600)
1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03
Linux version 2.6.12-10-686 running on i386
en_US (nb); UTF-8

Steps to reproduce:
- run IDE
- create Java Application
- create form file and do some changes (add some components)
- invoke Local History | Show Local History ( if you are in the Design view)
- select NewJFrame.java node from Version list
- try to remove (push X icon) some code from Guarded Block
-> "org.netbeans.editor.GuardedException: Attempt to remove from guarded block"
rises (see attachment)

I think it would be much better to don't allow to modify guarded block for now.
For future we should probably use Undo from Form Editor(not sure it's possible ;) )
Comment 1 Marian Mirilovic 2007-03-27 11:44:20 UTC
Created attachment 40019 [details]
exception stack-trace
Comment 2 Tomas Stupka 2007-03-27 12:15:51 UTC
looks like diff to me
Comment 3 Maros Sandor 2007-03-27 14:59:03 UTC
Removed action icons for guarded differences.

/shared/data/ccvs/repository/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/LineNumbersActionsBar.java,v
 <--  LineNumbersActionsBar.java
new revision: 1.6; previous revision: 1.5
/shared/data/ccvs/repository/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/DiffViewManager.java,v
 <--  DiffViewManager.java
new revision: 1.8; previous revision: 1.7
/shared/data/ccvs/repository/diff/src/org/netbeans/modules/diff/builtin/visualizer/editable/DiffSplitPaneDivider.java,v
 <--  DiffSplitPaneDivider.java
new revision: 1.6; previous revision: 1.5
Comment 4 Maros Sandor 2007-03-27 15:00:22 UTC
*** Issue 98642 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2007-03-28 10:27:13 UTC
verified in NB Dev(200703271800)