lblProgress = new Label(mainShell, SWT.NONE);
lblProgress.setLayoutData(progressGridData);
lblProgress.setText("Progress: ");
for (int i = 0; i < algorithms.size(); i++) {
final LayoutAlgorithm algorithm = (LayoutAlgorithm) algorithms.get(i);
String algorithmName = (String) algorithmNames.get(i);
final boolean algorithmAnimate = ((Boolean) algorithmAnimates.get(i)).booleanValue();
ToolItem algorithmButton = new ToolItem(toolBar, SWT.PUSH);
algorithmButton.setText(algorithmName);
new ToolItem(toolBar, SWT.SEPARATOR);
algorithmButton.addSelectionListener(new SelectionListener() {
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
currentLayoutAlgorithm = algorithm;
algorithm.setEntityAspectRatio((double) mainComposite.getClientArea().width / (double) mainComposite.getClientArea().height);
animate = algorithmAnimate;
performLayout(false);
}
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {