3334353637383940414243
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); Project proj = menubar.getProject(); if (src == undo) { if (proj != null) proj.undoAction(); } } } private LogisimMenuBar menubar;
6566676869707172737475
Object src = e.getSource(); Project proj = menubar.getProject(); if( src == undo ) { if( proj != null ) proj.undoAction(); } else if( src == redo ) { if (proj != null ) proj.redoAction();