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.
Steps to reproduce: Create anagram game -> invoke build or run on it -> delete or close the anagram game -> the repeat item is still enabled although it now does nothing
I'm not sure your expectation is correct. Closing a project has definitely no influence on rerunning a build. Deleting has an effect but listening on that is expensive (and currently not possible with the set of APIs we have). Also another build renders the problem obsolete. Is there another problem next to enablement state?
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
It is necessary to correct the build.xml file