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 48783 - Changes in freeform project command set not reflected in main project actions - need change firing in ActionProvider
Summary: Changes in freeform project command set not reflected in main project actions...
Status: CLOSED DUPLICATE of bug 47160
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
Keywords: API
Depends on:
Blocks: 42682
  Show dependency tree
Reported: 2004-09-09 16:15 UTC by John Jullion-ceccarelli
Modified: 2006-03-24 10:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

build script (1.09 KB, text/plain)
2004-09-09 16:18 UTC, John Jullion-ceccarelli
project.xml file (2.09 KB, text/plain)
2004-09-09 16:19 UTC, John Jullion-ceccarelli

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2004-09-09 16:15:52 UTC
I set up a freeform J2SE project with a build
script that didn't have a clean target, then wrote
the clean target and hooked it up in Project
Properties. Clean action is enabled on contextual
menu but Clean and Build Main Project still
unavailable. (Yes, the project is set as the main
Comment 1 John Jullion-ceccarelli 2004-09-09 16:18:46 UTC
Created attachment 17526 [details]
build script
Comment 2 John Jullion-ceccarelli 2004-09-09 16:19:19 UTC
Created attachment 17527 [details]
project.xml file
Comment 3 David Konecny 2004-09-09 16:26:00 UTC
But project reopen or IDE restart makes actions enabled, right?
Comment 4 John Jullion-ceccarelli 2004-09-09 16:31:16 UTC
Yup. Take it you've seen this :-)
Comment 5 Jesse Glick 2004-09-09 16:31:25 UTC
I could have sworn this was already filed, but I just can't find it now.

Impossible to fix without an API change, I think. The set of valid
commands from the ActionProvider has changed but the project cannot
inform the menu item of this.

Workaround is to set the main project to some other project and then
back again.

Possible hack for D would be to have the main-project-sensitive
actions recheck enablement whenever the menu item is displayed.
Comment 6 Jesse Glick 2004-09-28 16:14:26 UTC
Found it.

*** This issue has been marked as a duplicate of 47160 ***
Comment 7 Marian Mirilovic 2005-07-12 10:14:16 UTC