()
| 61 | |
| 62 | |
| 63 | public void run() { |
| 64 | if (selector == null) { |
| 65 | synchronized (ColorSelector.class) { |
| 66 | if (selector == null) { |
| 67 | selector = new ColorChooser(base.getActiveEditor(), |
| 68 | false, Color.WHITE, |
| 69 | Language.text("menu.edit.copy"), |
| 70 | new ActionListener() { |
| 71 | |
| 72 | @Override |
| 73 | public void actionPerformed(ActionEvent e) { |
| 74 | Clipboard c = Toolkit.getSystemClipboard(); |
| 75 | c.setContents(new StringSelection(selector.getHexColor()), null); |
| 76 | } |
| 77 | }); |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | selector.show(); |
| 82 | } |
| 83 | } |
nothing calls this directly
no test coverage detected