(String arg)
| 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) { |
nothing calls this directly
no test coverage detected