@Override public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == add) { ProjectCircuitActions.doAddCircuit(proj); } else if (src == loadBuiltin) { ProjectLibraryActions.doLoadBuiltinLibrary(proj); } else if (src == loadLogisim) { ProjectLibraryActions.doLoadLogisimLibrary(proj); } else if (src == loadJar) { ProjectLibraryActions.doLoadJarLibrary(proj); } }
@Override public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (src == unload) { ProjectLibraryActions.doUnloadLibrary(proj, lib); } else if (src == reload) { Loader loader = proj.getLogisimFile().getLoader(); loader.reload((LoadedLibrary) lib); } }