proj.repaintCanvas();
}
} else if (src == reset) {
if (sim != null) sim.requestReset();
} else if (src == step || src == LogisimMenuBar.SIMULATE_STEP) {
if (sim != null) sim.step();
} else if (src == tickOnce || src == LogisimMenuBar.TICK_STEP) {
if (sim != null) sim.tick();
} else if (src == ticksEnabled || src == LogisimMenuBar.TICK_ENABLE) {
if (sim != null) sim.setIsTicking(!sim.isTicking());
} else if (src == log) {