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

Method actionPerformed

app/src/processing/app/ui/Recent.java:212–229  ·  view source on GitHub ↗
(ActionEvent e)

Source from the content-addressed store, hash-verified

210 JMenuItem item = new JMenuItem(purtyPath);
211 item.addActionListener(new ActionListener() {
212 public void actionPerformed(ActionEvent e) {
213 // Base will call handle() (below) which will cause this entry to
214 // be removed from the list and re-added to the end. If already
215 // opened, Base will bring the window forward, and also call handle()
216 // so that it's re-queued to the newest slot in the Recent menu.
217 base.handleOpen(rec.path);
218// if (rec.sketch == null) {
219// // this will later call 'add' to put it back on the stack
220// base.handleOpen(rec.path); //, rec.state);
221//// int index = findRecord(rec);
222//// if (index != -1) {
223//// records.remove(index); // remove from the list
224//// save(); // write the recent file with the latest
225//// }
226// } else {
227//// System.out.println("sketch not null in handleOpen: " + record.getPath());
228// }
229 }
230 });
231 //menu.add(item);
232 menu.insert(item, 0);

Callers

nothing calls this directly

Calls 1

handleOpenMethod · 0.80

Tested by

no test coverage detected