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)
| 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 | /** |
no test coverage detected