MCPcopy Index your code
hub / github.com/arduino/Arduino / handleIndentOutdent

Method handleIndentOutdent

app/src/processing/app/EditorTab.java:566–576  ·  view source on GitHub ↗
(boolean indent)

Source from the content-addressed store, hash-verified

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();

Callers 3

actionPerformedMethod · 0.95
executeInEDTMethod · 0.80
buildEditMenuMethod · 0.80

Calls 3

updateUndoRedoStateMethod · 0.80
getMethod · 0.65
actionPerformedMethod · 0.65

Tested by 1

executeInEDTMethod · 0.64