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

Method getTab

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

2249 * @return the {@link SketchCode} object for the tab, or null if not found
2250 */
2251 public SketchCode getTab(String filename) {
2252 Sketch s = getSketch();
2253 for (SketchCode c : s.getCode()) {
2254 if (c.getFileName().equals(filename)) {
2255 return c;
2256 }
2257 }
2258 return null;
2259 }
2260
2261
2262 /**

Callers 6

addBreakpointCommentsMethod · 0.95
setTabContentsMethod · 0.95
javaToSketchLineMethod · 0.45
sketchToJavaLineMethod · 0.45
LineHighlightMethod · 0.45
LineBreakpointMethod · 0.45

Calls 4

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

Tested by

no test coverage detected