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()));
d.schedule(newBlocks);
}
for (Figure f : d.getFigures()) {
FigureWidget w = new FigureWidget(f, this, mainLayer);