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 48901 - Run and Debug Main Project menu items are disabled if no project is main
Summary: Run and Debug Main Project menu items are disabled if no project is main
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-09-12 21:04 UTC by jrojcek
Modified: 2006-03-24 10:32 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 jrojcek 2004-09-12 21:04:14 UTC
Steps to reproduce:

* start up IDE with the clean userdir
* open or create a project
* close the project
* open the project again using the Recent Projects menu
* the project isn't set as main (which is as designed), but the 
Run/Debug Main Project menu items are disabled, which is a 
bug - they should be enabled
Comment 1 Milan Kubec 2004-09-13 09:00:54 UTC
Pardon my stupid question: What would those action run and debug if
there is no project set as main?
Comment 2 jrojcek 2004-09-13 09:03:54 UTC
http://projects.netbeans.org/nonav/buildsys/build-sys-ui-
spec.html#Alert_RunMainProject
Comment 3 Jiri Rechtacek 2004-09-14 09:06:31 UTC
The problem is caused the list of actions isn't refreshed after "Open
recent projects", same problem when closed open project which is not
main. Refresh is fired after set/unset a project as main. Refresh
actions should be after Open recent and Close project.
Comment 4 Petr Hrebejk 2004-09-16 15:27:47 UTC
Checking in MainProjectAction.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/actions/MainProjectAction.java,v
 <--  MainProjectAction.java
new revision: 1.10; previous revision: 1.9
Comment 5 Marian Mirilovic 2005-12-20 15:52:41 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.