MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / mouseClicked

Method mouseClicked

ij/src/main/java/ij/text/TextPanel.java:518–531  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

516 }
517
518 public void mouseClicked (MouseEvent e) {
519 if (e.getClickCount() == 2 && !e.isConsumed()) {
520 e.consume();
521 boolean doubleClickableTable = title!=null && (title.equals("Log")||title.startsWith("Overlay Elements"));
522 Hashtable commands = Menus.getCommands();
523 boolean tableActionCommand = commands!=null && commands.get("Table Action")!=null;
524 if (!tableActionCommand)
525 tableActionCommand = ij.plugin.MacroInstaller.isMacroCommand("Table Action");
526 if (doubleClickableTable || !tableActionCommand)
527 return;
528 String options = title+"|"+getSelectionStart()+"|"+getSelectionEnd();
529 IJ.run("Table Action", options);
530 }
531 }
532
533 public void mouseWheelMoved(MouseWheelEvent event) {
534 synchronized(this) {

Callers

nothing calls this directly

Calls 8

getCommandsMethod · 0.95
getSelectionStartMethod · 0.95
getSelectionEndMethod · 0.95
runMethod · 0.95
startsWithMethod · 0.80
isMacroCommandMethod · 0.80
equalsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected