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

Method focusGained

app/src/processing/app/EditorTab.java:180–185  ·  view source on GitHub ↗
(FocusEvent e)

Source from the content-addressed store, hash-verified

178 });
179 textArea.addFocusListener(new FocusListener() {
180 public void focusGained(FocusEvent e) {
181 Element root = textArea.getDocument().getDefaultRootElement();
182 int lineStart = root.getElementIndex(textArea.getCaret().getMark());
183 int lineEnd = root.getElementIndex(textArea.getCaret().getDot());
184 editor.lineStatus.set(lineStart, lineEnd);
185 };
186 public void focusLost(FocusEvent e) {};
187 });
188 ToolTipManager.sharedInstance().registerComponent(textArea);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected