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