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.

View | Details | Raw Unified | Return to bug 255416
Collapse All | Expand All

(-)a/form.nb/src/org/netbeans/modules/nbform/actions/InstallToPaletteAction.java (+3 lines)
Lines 94-99 Link Here
94
94
95
    @Override
95
    @Override
96
    protected boolean enable(Node[] activatedNodes) {
96
    protected boolean enable(Node[] activatedNodes) {
97
        if (activatedNodes.length == 0) {
98
            return false;
99
        }
97
        for (Node n: activatedNodes) {
100
        for (Node n: activatedNodes) {
98
            FileObject fobj = n.getLookup().lookup(FileObject.class);
101
            FileObject fobj = n.getLookup().lookup(FileObject.class);
99
            if (fobj == null || JavaSource.forFileObject(fobj) == null) {
102
            if (fobj == null || JavaSource.forFileObject(fobj) == null) {

Return to bug 255416