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 226980 - After deleting a row, no row is selected, but only focused
Summary: After deleting a row, no row is selected, but only focused
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
: 243507 (view as bug list)
Depends on:
Reported: 2013-03-04 13:10 UTC by Jaroslav Havlin
Modified: 2014-04-04 06:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Havlin 2013-03-04 13:10:31 UTC
Steps to reproduce:

1. Select a row in OutlineView that has several rows 
   (e.g. in Search Results window)
2. Press <Delete>
3. The row is deleted, the previous row is focused, but not selected
   (it has white background and black thick border)
4. Press <Delete> again
5. Nothing happens

It would be more comfortable if the same row is still focused and selected, so that it is possible to delete sequence of rows just by pressing <Delete> multiple times.
Comment 1 Martin Entlicher 2013-03-08 18:59:25 UTC
Unfortunately, it's the ExplorerActionsImpl.DeleteActionPerformer, which clears the selection.
Therefore, we should probably incorporate something similar to TreeView.ExplorerTree.ModelHandler.treeNodesRemoved() into the OutlineView.
Comment 2 Jaroslav Havlin 2014-04-04 06:56:54 UTC
*** Bug 243507 has been marked as a duplicate of this bug. ***