@Override public Action getPreferredAction() { // default action is org.openide.actions.PropertiesAction SystemAction[] arr = NodeOp.createFromNames(new String[] { "Properties" }); // NOI18N return (arr.length == 1) ? arr[0] : null; }
@Override public Action[] getActions(boolean context) { return NodeOp.createFromNames( new String[] { "Copy", null, "Tools", "Properties" // NOI18N } ); }
/** Get the default actions for all nodes. * @return array of default actions * @deprecated Do not use this method. It is useless now. */ @Deprecated public static SystemAction[] getDefaultActions() { if (defaultActions == null) { defaultActions = createFromNames(new String[] {"Tools", "Properties"}); // NOI18N } return defaultActions; }
protected SystemAction[] createActions () { return NodeOp.createFromNames (new String[] { "CustomizeBean", null, "Copy", null, "Tools", "Properties" // NOI18N }); }
protected SystemAction[] createActions () { return NodeOp.createFromNames (new String[] { "CustomizeBean", null, "Copy", null, "Tools", "Properties" // NOI18N }); }
/** Get the default actions for all nodes. * @return array of default actions * @deprecated Do not use this method. It is useless now. */ public static org.openide.util.actions.SystemAction[] getDefaultActions () { if (defaultActions == null) { defaultActions = createFromNames (new String [] { "Tools", "Properties" // NOI18N }); } return defaultActions; }
/** Get the default actions for all nodes. * @return array of default actions * @deprecated Do not use this method. It is useless now. */ public static org.openide.util.actions.SystemAction[] getDefaultActions () { if (defaultActions == null) { defaultActions = createFromNames (new String [] { "Tools", "Properties" // NOI18N }); } return defaultActions; }
SystemAction[] arr = NodeOp.createFromNames (new String[] { "Properties" }); // NOI18N if (arr.length != 0) { setDefaultAction (arr[0]);
SystemAction[] arr = NodeOp.createFromNames (new String[] { "Properties" }); // NOI18N if (arr.length != 0) { setDefaultAction (arr[0]);