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 8afeb50 commit 5792ec2Copy full SHA for 5792ec2
app/src/processing/app/Editor.java
@@ -1652,22 +1652,6 @@ public int findTabIndex(final SketchCode doc) {
1652
return -1;
1653
}
1654
1655
- /**
1656
- * Finds the tab that shows the given file (as returned by
1657
- * SketchCode.getFileName() or SketchCode.getPrettyName()).
1658
- */
1659
- public int findTabIndex(final String name) {
1660
- int i = 0;
1661
- for (EditorTab tab : tabs) {
1662
- SketchCode code = tab.getSketchCode();
1663
- if (name.equals(code.getFileName()) ||
1664
- name.equals(code.getPrettyName())) {
1665
- return i;
1666
- }
1667
1668
- return -1;
1669
1670
-
1671
/**
1672
* Create tabs for each of the current sketch's files, removing any existing
1673
* tabs.
0 commit comments