protected Action[] createActions() { Action[] plainActions = new Action[] { new NbUndoAction(), new NbRedoAction(), }; return TextAction.augmentList(super.createActions(), plainActions); }
@Override public javax.swing.Action[] getActions() { return javax.swing.text.TextAction.augmentList( super.getActions(), new javax.swing.Action[] { Actions.commentAction(), Actions.uncommentAction(), Actions.shiftLeftAction(), Actions.shiftRightAction(), Actions.quickHelpAction(colorizer, i18n), }); }
@Override protected Action[] createActions() { Action[] superActions = super.createActions(); final String COMMENT_CHAR = ";"; return TextAction.augmentList( superActions, new Action[] { new ExtKit.ToggleCommentAction(COMMENT_CHAR), new ExtKit.CommentAction(COMMENT_CHAR), new ExtKit.UncommentAction(COMMENT_CHAR), }); }
// <editor-fold defaultstate="collapsed" desc="general support functions"> @Override public Action[] getActions() { return TextAction.augmentList(super.getActions(), defaultActions); }
/** * Fetch the list of actions supported by this editor. It is implemented to return the list of * actions supported by the embedded JTextComponent augmented with the actions defined locally. */ public Action[] getActions() { return TextAction.augmentList(editor.getActions(), defaultActions); }