blockWidgets.clear();
figureWidgets = new HashMap<Figure, FigureWidget>();
slotWidgets = new HashMap<Slot, SlotWidget>();
connectionWidgets = new HashMap<Connection, ConnectionWidget>();
WidgetAction selectAction = new ExtendedSelectAction(selectProvider);
Diagram d = getModel().getDiagramToView();
if (getModel().getShowBlocks()) {
Scheduler s = Lookup.getDefault().lookup(Scheduler.class);
Collection<InputBlock> newBlocks = new ArrayList<InputBlock>(s.schedule(d.getGraph()));