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 45137
Collapse All | Expand All

(-)src/org/netbeans/modules/form/FormDataLoader.java (-10 / +2 lines)
Lines 43-58 Link Here
43
                 .getString("PROP_FormLoader_Name"); // NOI18N
43
                 .getString("PROP_FormLoader_Name"); // NOI18N
44
    }
44
    }
45
45
46
    /** Gets default actions. Overrides superclass method. */
46
    protected String actionsContext () {
47
    protected SystemAction[] defaultActions() {
47
        return "Loaders/text/x-java/Actions"; // NOI18N
48
        DataLoader javaLoader = getLoader(JavaDataLoader.class);          
49
        SystemAction[] javaActions = javaLoader.getActions();
50
        SystemAction[] formActions = new SystemAction[javaActions.length+2];
51
        formActions[0] = javaActions[0]; // OpenAction            
52
        formActions[1] = SystemAction.get(EditAction.class);
53
        formActions[2] = null;
54
        System.arraycopy(javaActions, 1, formActions, 3, javaActions.length-1);
55
        return formActions;
56
    }
48
    }
57
49
58
    /** For a given file finds a primary file.
50
    /** For a given file finds a primary file.
(-)src/org/netbeans/modules/form/FormDataNode.java (+10 lines)
Lines 45-48 Link Here
45
        return SystemAction.get(OpenAction.class);
45
        return SystemAction.get(OpenAction.class);
46
    }
46
    }
47
47
48
    public Action[] getActions (boolean context) {
49
        Action[] javaActions = super.getActions(context);
50
        Action[] formActions = new Action[javaActions.length+2];
51
        formActions[0] = javaActions[0]; // OpenAction            
52
        formActions[1] = SystemAction.get(org.openide.actions.EditAction.class);
53
        formActions[2] = null;
54
        System.arraycopy(javaActions, 1, formActions, 3, javaActions.length-1);
55
        return formActions;
56
    }
57
48
}
58
}

Return to bug 45137