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

Method show

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

Source from the content-addressed store, hash-verified

3297
3298 // if no text is selected, disable copy and cut menu items
3299 public void show(Component component, int x, int y) {
3300// if (textarea.isSelectionActive()) {
3301// cutItem.setEnabled(true);
3302// copyItem.setEnabled(true);
3303// discourseItem.setEnabled(true);
3304//
3305//// String sel = textarea.getSelectedText().trim();
3306//// String referenceFile = mode.lookupReference(sel);
3307//// referenceItem.setEnabled(referenceFile != null);
3308//
3309// } else {
3310// cutItem.setEnabled(false);
3311// copyItem.setEnabled(false);
3312// discourseItem.setEnabled(false);
3313//// referenceItem.setEnabled(false);
3314// }
3315
3316 // Centralize the checks for each item at the Action.
3317// boolean active = textarea.isSelectionActive();
3318 cutItem.setEnabled(cutAction.canDo());
3319 copyItem.setEnabled(copyAction.canDo());
3320 discourseItem.setEnabled(copyAsHtmlAction.canDo());
3321 pasteItem.setEnabled(pasteAction.canDo());
3322 referenceItem.setEnabled(referenceCheck(false) != null);
3323 super.show(component, x, y);
3324 }
3325 }
3326}

Callers

nothing calls this directly

Calls 2

referenceCheckMethod · 0.80
canDoMethod · 0.45

Tested by

no test coverage detected