2021222324252627282930
public class Builtin extends Library { private List<Library> libraries = null; public Builtin() { libraries = Arrays.asList(new Library[] { new Base(), new Gates(), new Wiring(), new Plexers(), new Arithmetic(), new Memory(),
139140141142143144145146147148149
} private void selectSelectTool(Project proj) { for (Library sub : proj.getLogisimFile().getLibraries()) { if (sub instanceof Base) { Base base = (Base) sub; Tool tool = base.getTool("Edit Tool"); if (tool != null) proj.setTool(tool); } } }
2122232425262728293031
148149150151152153154155156157158159
} private void selectSelectTool(Project proj) { for (Library sub : proj.getLogisimFile().getLibraries()) { if (sub instanceof Base) { Base base = (Base) sub; Tool tool = base.getTool("Edit Tool"); if (tool != null) { proj.setTool(tool); } }