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

Method copyTab

src/org/opensourcephysics/tools/DataTool.java:3260–3265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3258 }
3259
3260 protected void copyTab() {
3261 int i = tabbedPane.getSelectedIndex();
3262 String title = tabbedPane.getTitleAt(i);
3263 OSPLog.finest("copying tab " + title); //$NON-NLS-1$
3264 OSPRuntime.copy(getTabXML(), null);
3265 }
3266
3267 private String getTabXML() {
3268 return new XMLControlElement(getSelectedTab()).toXML();

Callers 1

actionPerformedMethod · 0.95

Calls 4

finestMethod · 0.95
copyMethod · 0.95
getTabXMLMethod · 0.95
getSelectedIndexMethod · 0.80

Tested by

no test coverage detected