MCPcopy Index your code
hub / github.com/processing/processing / switchToTab

Method switchToTab

java/src/processing/mode/java/JavaEditor.java:1733–1741  ·  view source on GitHub ↗

Switch to a tab. @param tabFileName the file name identifying the tab. (as in SketchCode#getFileName())

(String tabFileName)

Source from the content-addressed store, hash-verified

1731 * {@link SketchCode#getFileName()})
1732 */
1733 public void switchToTab(String tabFileName) {
1734 Sketch s = getSketch();
1735 for (int i = 0; i < s.getCodeCount(); i++) {
1736 if (tabFileName.equals(s.getCode(i).getFileName())) {
1737 s.setCurrentCode(i);
1738 break;
1739 }
1740 }
1741 }
1742
1743
1744 public Debugger getDebugger() {

Callers 1

setCurrentLineMethod · 0.95

Calls 6

getCodeCountMethod · 0.95
getCodeMethod · 0.95
setCurrentCodeMethod · 0.95
getSketchMethod · 0.80
equalsMethod · 0.45
getFileNameMethod · 0.45

Tested by

no test coverage detected