MCPcopy Index your code
hub / github.com/benfry/processing4 / switchToTab

Method switchToTab

java/src/processing/mode/java/JavaEditor.java:1132–1140  ·  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

1130 * {@link SketchCode#getFileName()})
1131 */
1132 public void switchToTab(String tabFileName) {
1133 Sketch s = getSketch();
1134 for (int i = 0; i < s.getCodeCount(); i++) {
1135 if (tabFileName.equals(s.getCode(i).getFileName())) {
1136 s.setCurrentCode(i);
1137 break;
1138 }
1139 }
1140 }
1141
1142
1143 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