We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Editor.findTabIndex(String)
1 parent 41f2816 commit 16fbdf2Copy full SHA for 16fbdf2
app/src/processing/app/Editor.java
@@ -1661,22 +1661,6 @@ public int findTabIndex(final SketchCode doc) {
1661
return -1;
1662
}
1663
1664
- /**
1665
- * Finds the tab that shows the given file (as returned by
1666
- * SketchCode.getFileName() or SketchCode.getPrettyName()).
1667
- */
1668
- public int findTabIndex(final String name) {
1669
- int i = 0;
1670
- for (EditorTab tab : tabs) {
1671
- SketchCode code = tab.getSketchCode();
1672
- if (name.equals(code.getFileName()) ||
1673
- name.equals(code.getPrettyName())) {
1674
- return i;
1675
- }
1676
1677
- return -1;
1678
1679
-
1680
/**
1681
* Create tabs for each of the current sketch's files, removing any existing
1682
* tabs.
0 commit comments