/** * Fetches the set of commands that can be used * on a text component that is using a model and * view produced by this kit. * * @return the set of actions */ public Action[] getActions() { Action[] res = TextAction.augmentList(super.getActions(), this.exActions); if (logger.isDebugEnabled()) logger.debug("res.length=" + res.length); return res; }
/** * Fetches the set of commands that can be used * on a text component that is using a model and * view produced by this kit. * * @return the command list */ @Override public Action[] getActions() { return TextAction.augmentList(super.getActions(), RSyntaxTextAreaEditorKit.defaultActions); }
/** * Fetches the set of commands that can be used * on a text component that is using a model and * view produced by this kit. * * @return the command list */ public Action[] getActions() { return TextAction.augmentList(super.getActions(), RSyntaxTextAreaEditorKit.defaultActions); }
/** * Fetches the set of commands that can be used * on a text component that is using a model and * view produced by this kit. * * @return the command list */ @Override public Action[] getActions() { return TextAction.augmentList(super.getActions(), RSyntaxTextAreaEditorKit.defaultActions); }
/** * Fetches the set of commands that can be used * on a text component that is using a model and * view produced by this kit. * * @return the command list */ public Action[] getActions() { return TextAction.augmentList(super.getActions(), RSyntaxTextAreaEditorKit.defaultActions); }
@Override public Action[] getActions() { return TextAction.augmentList(super.getActions(), new Action[]{new SQuirrelSelectWordAction()}); } };
protected Action[] createActions() { Action[] calcActions = new Action[] { new TokenListDebugAction(), }; return TextAction.augmentList(super.createActions(), calcActions); }
@Override protected Action[] createActions() { int arraySize = 3; int numAddClasses = 0; if (actionClasses != null) { numAddClasses = actionClasses.size(); arraySize += numAddClasses; } Action[] fortranActions = new Action[arraySize]; int index = 0; if (actionClasses != null) { for (int i = 0; i < numAddClasses; i++) { Class<?> c = actionClasses.get(i); try { fortranActions[index] = (Action)c.newInstance(); } catch (java.lang.InstantiationException e) { e.printStackTrace(System.err); } catch (java.lang.IllegalAccessException e) { e.printStackTrace(System.err); } index++; } } fortranActions[index++] = new CommentAction("!"); // NOI18N fortranActions[index++] = new UncommentAction("!"); // NOI18N fortranActions[index++] = new ToggleCommentAction("!"); // NOI18N return TextAction.augmentList(super.createActions(), fortranActions); }
return TextAction.augmentList(superActions, actions.toArray(new Action[actions.size()]));
protected @Override Action[] createActions() { Action[] myActions = new Action[] { new BraceCompletionInsertAction (), new BraceCompletionDeleteAction (), //new IndentAction (), new InstantRenameAction(), new LanguagesGenerateFoldPopupAction (), new org.netbeans.modules.languages.features.ToggleCommentAction(), new org.netbeans.modules.languages.features.CodeCommentAction(), new org.netbeans.modules.languages.features.CodeUncommentAction() }; return TextAction.augmentList ( super.createActions (), myActions ); }
@Override protected Action[] createActions() { Action[] superActions = super.createActions(); return TextAction.augmentList(superActions, new Action[] { // TODO - also register a Tab key action which tabs out of <% %> if the caret is near the end // (Shift Enter inserts a line below the current - perhaps that's good enough) new RhtmlToggleCommentAction(), new SelectCodeElementAction(SelectCodeElementAction.selectNextElementAction, true), new SelectCodeElementAction(SelectCodeElementAction.selectPreviousElementAction, false), new NextCamelCasePosition(findAction(superActions, nextWordAction)), new PreviousCamelCasePosition(findAction(superActions, previousWordAction)), new SelectNextCamelCasePosition(findAction(superActions, selectionNextWordAction)), new SelectPreviousCamelCasePosition(findAction(superActions, selectionPreviousWordAction)), new DeleteToNextCamelCasePosition(findAction(superActions, removeNextWordAction)), new DeleteToPreviousCamelCasePosition(findAction(superActions, removePreviousWordAction)), new InstantRenameAction(), }); }
protected @Override Action[] createActions() { Action[] superActions = super.createActions(); Action[] ccActions = new Action[]{ getToggleCommentAction(), getCommentAction(), getUncommentAction(), new CCNextWordAction(nextWordAction), new CCPreviousWordAction(previousWordAction), new CCNextWordAction(selectionNextWordAction), new CCPreviousWordAction(selectionPreviousWordAction), new DeleteToNextCamelCasePosition(findAction(superActions, removeNextWordAction)), new DeleteToPreviousCamelCasePosition(findAction(superActions, removePreviousWordAction)), new SelectCodeElementAction(selectNextElementAction, true), new SelectCodeElementAction(selectPreviousElementAction, false), new InsertSemicolonAction(true), new InsertSemicolonAction(false),}; ccActions = TextAction.augmentList(superActions, ccActions); return ccActions; }
protected Action[] createActions() { Action[] extActions = new Action[] { new BuildPopupMenuAction(), new ShowPopupMenuAction(), new BuildToolTipAction(), new FindAction(), new ReplaceAction(), new GotoAction(), //new GotoDeclarationAction(), the instance will be created in extending editor... i.e. JavaKit new ToggleCaseIdentifierBeginAction(), new MatchBraceAction(matchBraceAction, false), new MatchBraceAction(selectionMatchBraceAction, true), // new CodeSelectAction(), // the actionPerformed is empty and so I'm removing the action from the list new EscapeAction(), new ExtDefaultKeyTypedAction(), new CompletionShowAction(), new CompletionHideAction(), new JDCPopupPanelHideAction(), new JDCPopupPanelShowAction() }; return TextAction.augmentList(super.createActions(), extActions); }
protected Action[] createActions() { Action[] extActions = new Action[] { new BuildPopupMenuAction(), new ShowPopupMenuAction(), new BuildToolTipAction(), new FindAction(), new ReplaceAction(), new GotoAction(), new GotoDeclarationAction(), new ToggleCaseIdentifierBeginAction(), new MatchBraceAction(matchBraceAction, false), new MatchBraceAction(selectionMatchBraceAction, true), // new CodeSelectAction(), // the actionPerformed is empty and // so I'm removing the action from the list new EscapeAction(), new ExtDefaultKeyTypedAction(), new ExtInsertTabAction(), new ExtInsertBreakAction(), new ExtUpAction(upAction, false), new ExtPageUpAction(pageUpAction, false), new ExtDownAction(downAction, false), new ExtPageDownAction(pageDownAction, false), new ExtBeginLineAction(beginLineAction, false), new ExtBeginLineAction(selectionBeginLineAction, true), new ExtEndLineAction(endLineAction, false), new ExtEndLineAction(selectionEndLineAction, true), new CompletionShowAction(), new CompletionHideAction(), new ShiftInsertBreakAction() }; return TextAction.augmentList(super.createActions(), extActions); }