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 61794 - Main menu items disabled for the first time
Summary: Main menu items disabled for the first time
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 5.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 61453
  Show dependency tree
 
Reported: 2005-08-04 12:04 UTC by Jiri Skrivanek
Modified: 2011-12-12 13:19 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (52.80 KB, image/jpeg)
2005-08-04 12:05 UTC, Jiri Skrivanek
Details
Change log of suspicious commit (24.77 KB, text/html)
2005-08-04 12:06 UTC, Jiri Skrivanek
Details
Screen shot with disabled menu items when a package is selected. (51.24 KB, image/gif)
2006-11-22 12:29 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2005-08-04 12:04:47 UTC
It started to happen after build 200507131800 that some main menu items are
initially disabled in spite of they should be enabled. I am not sure but I
suspect it can be connected to changes done by Milos Klein (#35824, #39449,
#37771 - introduced a replacement for JInlineMenu, make it work on macosx top
menu). There is also issue 61197 which can be connected.
To manually reproduce do the following:

- start IDE and create Java project
- close all documents in editor
- restart IDE
- select e.g. Source Packages node (can be other node)
- open main menu Edit and Find menu item is disabled which is not correct (look
at screen shot)

The similar behaviour has been seen for Replace, Save and Save All actions.

Tested in build 20050804-0710, WindowsXP, JDK1.5.0_04.
Comment 1 Jiri Skrivanek 2005-08-04 12:05:11 UTC
Created attachment 23491 [details]
Screen shot
Comment 2 Jiri Skrivanek 2005-08-04 12:06:50 UTC
Created attachment 23492 [details]
Change log of suspicious commit
Comment 3 Milos Kleint 2005-08-04 12:17:21 UTC
there was a "feature" of jinline menu (some other special menus as well I think)
that did listen to changes in the model while the menu was visible and updated
the menu on the fly if something changed. This does not work on macosx at all
and should be generally avoided, changing a live menu is wrong. (be it adding
items, removing items, updating enabled state, name etc.)
Comment 4 Milos Kleint 2005-11-24 12:49:26 UTC
well, the toolbar button exposes the same wrong behaviour as the menu item.
Nothing changed in the toolbar action implementation AFAIK.
And it seems it does so just for the Find action. Therefore I assume that
there's something wrong either in the project module that is the owner of the
explorer component or the search module that implements the action performer.

reassinging for evaluation to search
Comment 5 Marian Petras 2005-12-06 14:35:14 UTC
Since it happens also with action "Test Project (Alt-F6)" and with actions from
the "Run File" submenu, I think the bug is in the projects.

Reassigned to projects/projectui.
Comment 6 Jan Lahoda 2005-12-06 15:11:20 UTC
It seems that the find action and the project actions does not have the same
mechanism for enabling, so I do not this it is the same bug.

Moreover, last week there was a bug in lookup that caused that the Run File
action was disabled after startup, which should be fixed now, so please check a
new build. Please file a separate bug is as much information as possible if the
problem with project actions persist.
Comment 7 Marian Petras 2005-12-09 15:45:33 UTC
I found that CallbackSystemAction.updateEnabled() is not called when switching
nodes in the Projects panel after IDE startup. Once the user switches e.g. to
the Files view and then back to the Projects view, updateEnabled() is called
immediately and then with every change of node selection.

Not only Find... action but also Copy, Cut, Paste and maybe some other actions
are affected by this bug.

Reassigned to "openide/actions".
Comment 8 Jiri Rechtacek 2005-12-10 09:05:10 UTC
Jardo, could you please look if is something wrong with CloneableSystemAction?
The problem is reproducible in Dev build 051208. Thanks
Comment 9 Jiri Rechtacek 2005-12-12 13:49:30 UTC
Marian, status of FindAction should work, SearchPerformer is correctly notified
by node change event, the FindAction should be enabled. I don't see any problem
on openide/actions side.
Comment 10 Marian Petras 2006-01-06 21:12:54 UTC
As I have already said, the Find action is not any specific.

After startup, many actions in the main menu are disabled. E.g. if the Explorer
is the active component after startup, actions Find, Copy, Test Project and
possibly others are disabled until you select another top component - simple
change of node selection does not help.

If the document window is active after startup, you even cannot copy any string
- if you select a part of text, the Copy action remains disabled.
Comment 11 Jiri Rechtacek 2006-01-18 15:34:29 UTC
I'm going to investigate it again. I guess the Search Performer is notified
about all changes in activated nodes regardless of immediately after startup or not.
Comment 12 Jiri Rechtacek 2006-11-22 11:28:45 UTC
Still valid problem? If not I'm going to close as WORKSFORME.
Comment 13 Jiri Skrivanek 2006-11-22 12:27:52 UTC
Yes, it is still valid on Windows platform. I can reproduce it manually
selecting javaapplication1 package as described in desc1 (build 20061122-0606,
WindowsXP, JDK1.5.0_09). Also automated tests are still failing.
Comment 14 Jiri Skrivanek 2006-11-22 12:29:45 UTC
Created attachment 36207 [details]
Screen shot with disabled menu items when a package is selected.
Comment 15 Marian Petras 2007-06-06 13:00:42 UTC
I just want to confirm that this bug still exists (tested on a build from 3 June
2007 on a Linux machine).

As I was fixing bug #105616, I added many logging statements to class
FindActionManager and other FindAction-related classes in module "User
Utilities" (in CVS: "utilities"). These logging messages can be used for
tracking down the issue of disabled menu items.
Comment 16 Jiri Rechtacek 2008-12-16 13:37:11 UTC
no plan to fix it now
Comment 17 Quality Engineering 2009-11-02 11:03:46 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX