MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / copy

Method copy

ij/src/main/java/ij/plugin/frame/Editor.java:830–840  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

828 }
829
830 boolean copy() {
831 String s;
832 s = ta.getSelectedText();
833 Clipboard clip = getToolkit().getSystemClipboard();
834 if (clip!=null) {
835 StringSelection cont = new StringSelection(s);
836 clip.setContents(cont,this);
837 return true;
838 } else
839 return false;
840 }
841
842 void cut() {
843 if (copy()) {

Callers 2

cutMethod · 0.95
actionPerformedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected