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

Method show

app/src/processing/app/ui/Editor.java:2727–2735  ·  view source on GitHub ↗
(Component component, int x, int y)

Source from the content-addressed store, hash-verified

2725
2726 // if no text is selected, disable copy and cut menu items
2727 public void show(Component component, int x, int y) {
2728 // Centralize the checks for each item at the Action.
2729 cutItem.setEnabled(cutAction.canDo());
2730 copyItem.setEnabled(copyAction.canDo());
2731 discourseItem.setEnabled(copyAsHtmlAction.canDo());
2732 pasteItem.setEnabled(pasteAction.canDo());
2733 referenceItem.setEnabled(referenceCheck(false) != null);
2734 super.show(component, x, y);
2735 }
2736 }
2737}

Callers

nothing calls this directly

Calls 2

referenceCheckMethod · 0.80
canDoMethod · 0.45

Tested by

no test coverage detected