MCPcopy Create free account
hub / github.com/benfry/processing4 / run

Method run

app/src/processing/app/tools/ColorSelector.java:63–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 e -> {
71 Clipboard c = Toolkit.getSystemClipboard();
72 c.setContents(new StringSelection(selector.getHexColor()), null);
73 });
74 }
75 }
76 }
77 selector.show();
78 }
79}

Callers

nothing calls this directly

Calls 5

textMethod · 0.95
getSystemClipboardMethod · 0.95
getActiveEditorMethod · 0.80
getHexColorMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected