MCPcopy Index your code
hub / github.com/arduino/Arduino / reorderTabs

Method reorderTabs

app/src/processing/app/Editor.java:1532–1534  ·  view source on GitHub ↗

Reorders tabs as per current sketch's files order

()

Source from the content-addressed store, hash-verified

1530 * Reorders tabs as per current sketch's files order
1531 */
1532 public void reorderTabs() {
1533 Collections.sort(tabs, (x, y) -> Sketch.CODE_DOCS_COMPARATOR.compare(x.getSketchFile(), y.getSketchFile()));
1534 }
1535
1536 /**
1537 * Add a new tab.

Callers 1

addTabMethod · 0.95

Calls 3

sortMethod · 0.80
getSketchFileMethod · 0.80
compareMethod · 0.45

Tested by

no test coverage detected