/** * 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; }
JTextComponent getFocusedComponent2() { return super.getFocusedComponent(); }
/** * The operation to perform when this action is triggered. * * @param e DOCUMENT ME! */ public void actionPerformed(ActionEvent e) { JTextComponent target = getTextComponent(e); if (target != null) { // target.getUI().getNextVisualPositionFrom(t Caret caret = target.getCaret(); int dot = caret.getDot(); verticalAction.actionPerformed(e); if (dot == caret.getDot()) { Point magic = caret.getMagicCaretPosition(); beginEndAction.actionPerformed(e); caret.setMagicCaretPosition(magic); } } } }
private final Action start = new TextAction("wordStart") { //NOI18N private static final long serialVersionUID = 4377386270269629176L; @Override private final Action end = new TextAction("wordEnd") { //NOI18N private static final long serialVersionUID = 4377386270269629176L; @Override
JTextComponent getFocusedComponent2() { return super.getFocusedComponent(); }
/** * The operation to perform when this action is triggered. * * @param e DOCUMENT ME! */ public void actionPerformed(ActionEvent e) { JTextComponent target = getTextComponent(e); if (target != null) { // target.getUI().getNextVisualPositionFrom(t Caret caret = target.getCaret(); int dot = caret.getDot(); verticalAction.actionPerformed(e); if (dot == caret.getDot()) { Point magic = caret.getMagicCaretPosition(); beginEndAction.actionPerformed(e); caret.setMagicCaretPosition(magic); } } } }
/** * 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); }
JTextComponent component = getFocusedComponent();
/** * The operation to perform when this action is triggered. * * @param e DOCUMENT ME! */ public void actionPerformed(ActionEvent e) { JTextComponent target = getTextComponent(e); if (target != null) { // target.getUI().getNextVisualPositionFrom(t Caret caret = target.getCaret(); int dot = caret.getDot(); verticalAction.actionPerformed(e); if (dot == caret.getDot()) { Point magic = caret.getMagicCaretPosition(); beginEndAction.actionPerformed(e); caret.setMagicCaretPosition(magic); } } } }
/** * 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); }
JTextComponent component = getFocusedComponent(); component.selectAll(); component.requestFocusInWindow();
/** * 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); }
public void actionPerformed(ActionEvent e) JTextComponent textComponent = getFocusedComponent();
/** * 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); }
public void actionPerformed(ActionEvent e) JTextComponent textComponent = getFocusedComponent();
@Override public Action[] getActions() { return TextAction.augmentList(super.getActions(), new Action[]{new SQuirrelSelectWordAction()}); } };
JTextComponent textComponent = getFocusedComponent();
protected Action[] createActions() { Action[] calcActions = new Action[] { new TokenListDebugAction(), }; return TextAction.augmentList(super.createActions(), calcActions); }
JTextComponent component = getFocusedComponent(); component.selectAll(); component.requestFocusInWindow();
@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); }