MCPcopy Index your code
hub / github.com/benfry/processing4 / findSketch

Method findSketch

app/src/processing/app/ui/Editor.java:932–939  ·  view source on GitHub ↗
(JMenuItem item)

Source from the content-addressed store, hash-verified

930 }
931
932 Sketch findSketch(JMenuItem item) {
933 for (Map.Entry<Sketch, JMenuItem> e : itemMap.entrySet()) {
934 if (item == e.getValue()) {
935 return e.getKey();
936 }
937 }
938 return null;
939 }
940
941 @Override
942 public void menuDeselected(MenuEvent event) { }

Callers 1

menuSelectedMethod · 0.95

Calls 2

getValueMethod · 0.80
getKeyMethod · 0.80

Tested by

no test coverage detected