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.
Actions Compile File, Run File and Debug File are disabled on form node. To reproduce: - create a new Java project - right-click javaapplication1 package node and select "New|JFrame Form" - finish the wizard - right-click NewJFrame.java but above mentioned actions are disabled Product Version: NetBeans IDE Dev (Build 201112120600) Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10 System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Caused by 61691117f0c0. The problem is with the forms, they are MultiDataObjects and they have both java and form file in the lookup. When the ActionUtils.findSelectedFiles is invoked with form lookup and strict == true it returns null as the second file (form file) does not match the suffix predicate.
(In reply to comment #1) > they are MultiDataObjects and they have both java and form file in the lookup Interesting; questionable whether we really want both files in the lookup. But as a workaround I guess I can simply ignore *.form files. The alternative is to call DataObject.find and check the primary file, which would contradict the reason for checking only FileObject to begin with.
core-main #d50eca69603b
DataObject.files() are returned from DataObject.getLookup().lookupAll(FileObject.class) since DataObject.getLookup() was introduced.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/d50eca69603b User: Jesse Glick <jglick@netbeans.org> Log: #206309: Compile File, Run File and Debug File actions disabled on form node
*** Bug 206404 has been marked as a duplicate of this bug. ***