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

Method run

ij/src/main/java/ij/plugin/Clipboard.java:20–39  ·  view source on GitHub ↗
(String arg)

Source from the content-addressed store, hash-verified

18 private ImagePlus gImp;
19
20 public void run(String arg) {
21 if (IJ.altKeyDown()) {
22 if (arg.equals("copy"))
23 arg = "scopy";
24 else if (arg.equals("paste"))
25 arg = "spaste";
26 }
27 if (arg.equals("copy"))
28 copy(false);
29 else if (arg.equals("paste"))
30 paste();
31 else if (arg.equals("cut"))
32 copy(true);
33 else if (arg.equals("scopy"))
34 copyToSystem();
35 else if (arg.equals("showsys"))
36 showSystemClipboard();
37 else if (arg.equals("show"))
38 showInternalClipboard();
39 }
40
41 /** Copies the contents of the specified image, or selection, to the system clicpboard. */
42 public static void copyToSystem(ImagePlus imp) {

Callers

nothing calls this directly

Calls 7

altKeyDownMethod · 0.95
copyMethod · 0.95
pasteMethod · 0.95
copyToSystemMethod · 0.95
showSystemClipboardMethod · 0.95
showInternalClipboardMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected