Finds the index of the tab showing the given file. Matches the file against EditorTab.getSketchFile() using ==. @returns The index of the tab for the given file, or -1 if no such tab was found.
(final SketchFile file)
| 1485 | * found. |
| 1486 | */ |
| 1487 | public int findTabIndex(final SketchFile file) { |
| 1488 | for (int i = 0; i < tabs.size(); ++i) { |
| 1489 | if (tabs.get(i).getSketchFile() == file) |
| 1490 | return i; |
| 1491 | } |
| 1492 | return -1; |
| 1493 | } |
| 1494 | |
| 1495 | /** |
| 1496 | * Finds the index of the tab showing the given file. Matches the file against |
no test coverage detected