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

Method getTab

java/src/processing/mode/java/JavaEditor.java:1641–1649  ·  view source on GitHub ↗

Get a tab by its file name. @param filename the filename to search for. @return the SketchCode object for the tab, or null if not found

(String filename)

Source from the content-addressed store, hash-verified

1639 * @return the {@link SketchCode} object for the tab, or null if not found
1640 */
1641 public SketchCode getTab(String filename) {
1642 Sketch s = getSketch();
1643 for (SketchCode c : s.getCode()) {
1644 if (c.getFileName().equals(filename)) {
1645 return c;
1646 }
1647 }
1648 return null;
1649 }
1650
1651
1652 /**

Callers 2

addBreakpointCommentsMethod · 0.95
setTabContentsMethod · 0.95

Calls 4

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

Tested by

no test coverage detected