MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / getOpenPaths

Method getOpenPaths

src/org/opensourcephysics/tools/Launcher.java:2138–2150  ·  view source on GitHub ↗

Gets the paths of currently open set and tabs. @return the open paths

()

Source from the content-addressed store, hash-verified

2136 * @return the open paths
2137 */
2138 protected Set<String> getOpenPaths() {
2139 openPaths.clear();
2140 openPaths.add(tabSetName);
2141 for (int i = 0; i < tabbedPane.getTabCount(); i++) {
2142 LaunchPanel panel = (LaunchPanel) tabbedPane.getComponentAt(i);
2143 LaunchNode[] nodes = panel.getRootNode().getAllOwnedNodes();
2144 for (int j = 0; j < nodes.length; j++) {
2145 openPaths.add(nodes[j].getFileName());
2146 }
2147 openPaths.add(panel.getRootNode().getFileName());
2148 }
2149 return openPaths;
2150 }
2151
2152 /**
2153 * Sets the look and feel.

Callers 2

saveAsMethod · 0.80
getCellEditorValueMethod · 0.80

Calls 6

getRootNodeMethod · 0.95
getAllOwnedNodesMethod · 0.80
clearMethod · 0.65
getFileNameMethod · 0.65
addMethod · 0.45
getTabCountMethod · 0.45

Tested by

no test coverage detected