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

Method mouseClicked

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

Source from the content-addressed store, hash-verified

97
98 addMouseListener(new MouseAdapter() {
99 @Override
100 synchronized public void mouseClicked(MouseEvent e) {
101 try {
102 int row = ((ErrorTable) e.getSource()).getSelectedRow();
103 if (row >= 0 && row < getRowCount()) {
104 Object data = getModel().getValueAt(row, DATA_COLUMN);
105 int clickCount = e.getClickCount();
106 if (clickCount == 1) {
107 editor.errorTableClick(data);
108 } else if (clickCount > 1) {
109 editor.errorTableDoubleClick(data);
110 }
111 editor.getTextArea().requestFocusInWindow();
112// editor.getErrorChecker().scrollToErrorLine(row);
113 }
114 } catch (Exception ex) {
115 ex.printStackTrace();
116 }
117 }
118 });
119
120 header.setReorderingAllowed(false);

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected