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

Method copy

src/org/opensourcephysics/display/OSPRuntime.java:2295–2298  ·  view source on GitHub ↗
(String s, ClipboardOwner owner)

Source from the content-addressed store, hash-verified

2293 }
2294
2295 public static void copy(String s, ClipboardOwner owner) {
2296 StringSelection stringSelection = new StringSelection(s);
2297 getClipboard().setContents(stringSelection, owner == null ? stringSelection : owner);
2298 }
2299
2300 /**
2301 * Register a TransferHandler for the onpaste event for this component. This

Callers 12

actionPerformedMethod · 0.95
copyTabMethod · 0.95
actionPerformedMethod · 0.95
copyMethod · 0.95
actionPerformedMethod · 0.95
copyMethod · 0.95
copyMethod · 0.95
copyActionMethod · 0.95
copyTableMethod · 0.95
copyMethod · 0.95
copyActionMethod · 0.95

Calls 1

getClipboardMethod · 0.95

Tested by

no test coverage detected