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 203463 - Undo action in grid-designer doesn't work sometimes
Summary: Undo action in grid-designer doesn't work sometimes
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 19:03 UTC by Jan Stola
Modified: 2011-10-10 19:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2011-10-10 19:03:59 UTC
Steps to reproduce:
1. Open grid-designer (=customizer for GridBagLayout).
2. Select some component.
3. Press some of the 'plus insets' buttons 60 times.
4. Press undo many times (~50 times) until it starts to beep.
   => Undo action is enabled, but it doesn't undo the last action,
   it just beeps.
Comment 1 Jan Stola 2011-10-10 19:09:10 UTC
The described test-case is artificial, but it is a good way to reproduce the problem that can occur after more complex steps during real usage.

Undo action does nothing in the described test-case because the undo-queue of the corresponding UndoManager is empty. Every UndoManager has a limit on number of edits that can be undone and we exceeded this limit. Hence, the root of the problem is that the Undo action is enabled in such case.
Comment 2 Jan Stola 2011-10-10 19:44:56 UTC
Fixed - Undo action should be disabled correctly by now.

Modified file: http://hg.netbeans.org/jet-main/rev/71854e48f8c0