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 26656 - Selection vs. Focus issue - confusing menu item enabling
Summary: Selection vs. Focus issue - confusing menu item enabling
Status: VERIFIED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: FOCUS
Depends on:
Blocks:
 
Reported: 2002-08-20 19:55 UTC by Sreenivasa viswanadha
Modified: 2008-12-23 09:44 UTC (History)
2 users (show)

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 Sreenivasa viswanadha 2002-08-20 19:55:23 UTC
When the IDE restarts, it remembers the selection
in the explorer. Evidently, since the focus is not
on the selection in the explorer node, menu items
that would be appropriate for the selection don't
get enabled.

For example, select a class with the main method.
Then under the 'Debug' menu, all itmes like start,
step into etc. get enabled. Now, you exit the IDE
and restart it. It will come back with the same
class selected, however, you don't see the 'Debug'
menu items enabled. This is confusing.

Suggestion: May be do not persist the selction, so
the user will not get confused about why some menu
items are not enabled.
Comment 1 Marian Mirilovic 2002-11-13 15:31:34 UTC
changed owner Dafe -> Peter Z.
Comment 2 Peter Zavadsky 2002-12-04 10:10:36 UTC
It seems it is necessary to remember also activated top component, to
get the same activated nodes after restart.
Comment 3 Peter Zavadsky 2003-02-24 09:56:56 UTC
I tried it now (build on fresh sources), and it seems it is working.
Could have been fixed by some patch before. Closing as worksforme.
Comment 4 Marian Mirilovic 2003-07-29 10:39:28 UTC
It works fine in [nb_dev](20030728) - verifying.