MCPcopy Index your code
hub / github.com/processing/processing / run

Method run

app/src/processing/app/tools/ColorSelector.java:63–82  ·  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 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}

Callers

nothing calls this directly

Calls 3

textMethod · 0.95
getActiveEditorMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected