MCPcopy Create free account
hub / github.com/beanshell/beanshell / actionPerformed

Method actionPerformed

src/bsh/util/JConsole.java:708–717  ·  view source on GitHub ↗
(ActionEvent event)

Source from the content-addressed store, hash-verified

706
707 // handle cut, copy and paste
708 public void actionPerformed(ActionEvent event) {
709 String cmd = event.getActionCommand();
710 if (cmd.equals(CUT)) {
711 text.cut();
712 } else if (cmd.equals(COPY)) {
713 text.copy();
714 } else if (cmd.equals(PASTE)) {
715 text.paste();
716 }
717 }
718
719 /**
720 * If not in the event thread run via SwingUtilities.invokeAndWait()

Callers

nothing calls this directly

Calls 4

cutMethod · 0.80
pasteMethod · 0.80
equalsMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected