{
main.lockWithMessage("Performing layout ...");
CompoundModel root = (CompoundModel)((ChsRootEditPart) main.getViewer().
getRootEditPart().getChildren().get(0)).getModel();
LayoutCommand command = new LayoutCommand(main, new SpringLayout(root));
command.execute();
}
catch (Exception e)
{
e.printStackTrace();