| 564 | } |
| 565 | |
| 566 | void handleIndentOutdent(boolean indent) { |
| 567 | if (indent) { |
| 568 | Action action = textarea.getActionMap().get(SketchTextAreaEditorKit.rtaIncreaseIndentAction); |
| 569 | action.actionPerformed(null); |
| 570 | } else { |
| 571 | Action action = textarea.getActionMap().get(RSyntaxTextAreaEditorKit.rstaDecreaseIndentAction); |
| 572 | action.actionPerformed(null); |
| 573 | } |
| 574 | // XXX: RSyntaxDocument doesn't fire DocumentListener events, it should be fixed in RSyntaxTextArea? |
| 575 | editor.updateUndoRedoState(); |
| 576 | } |
| 577 | |
| 578 | void handleUndo() { |
| 579 | textarea.undoLastAction(); |