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

Method mouseClicked

app/src/processing/app/ui/ErrorTable.java:81–99  ·  view source on GitHub ↗
(MouseEvent e)

Source from the content-addressed store, hash-verified

79
80 addMouseListener(new MouseAdapter() {
81 @Override
82 synchronized public void mouseClicked(MouseEvent e) {
83 try {
84 int row = ((ErrorTable) e.getSource()).getSelectedRow();
85 if (row >= 0 && row < getRowCount()) {
86 Object data = getModel().getValueAt(row, DATA_COLUMN);
87 int clickCount = e.getClickCount();
88 if (clickCount == 1) {
89 editor.errorTableClick(data);
90 } else if (clickCount > 1) {
91 editor.errorTableDoubleClick(data);
92 }
93 editor.getTextArea().requestFocusInWindow();
94// editor.getErrorChecker().scrollToErrorLine(row);
95 }
96 } catch (Exception ex) {
97 ex.printStackTrace();
98 }
99 }
100 });
101
102 getTableHeader().setReorderingAllowed(false);

Callers

nothing calls this directly

Calls 7

getSourceMethod · 0.80
getValueAtMethod · 0.80
errorTableClickMethod · 0.80
getRowCountMethod · 0.45
errorTableDoubleClickMethod · 0.45
getTextAreaMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected