Section autoSelectOptions = this.toolkit.createSection(controlComposite, Section.EXPANDED);
autoSelectOptions.setText("Auto Selection");
autoSelectOptions.setLayout(new FillLayout());
Composite autoSelectOptionsComposite = this.toolkit.createComposite(autoSelectOptions);
autoSelectOptionsComposite.setLayout(new TableWrapLayout());
showShortestRootPath = this.toolkit
.createButton(autoSelectOptionsComposite, "Shortest path to root", SWT.RADIO);
showShortestRootPath.setLayoutData(new TableWrapData(TableWrapData.FILL));
showShortestRootPath.setSelection(true);
showShortestRootPath.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
view.setAutoSelectDecorator(new ShortestRootPathAlgorithm());
}
});
showAllRootPaths = this.toolkit.createButton(autoSelectOptionsComposite, "All paths to root", SWT.RADIO);
showAllRootPaths.setLayoutData(new TableWrapData(TableWrapData.FILL));
showAllRootPaths.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
view.setAutoSelectDecorator(new AllRootPathsAlgorithm());
}
});
showAllCallers = this.toolkit.createButton(autoSelectOptionsComposite, "All callers", SWT.RADIO);
showAllCallers.setLayoutData(new TableWrapData(TableWrapData.FILL));
showAllCallers.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
view.setAutoSelectDecorator(new AllCallersAlgorithm());
}
});
showAllDependencies = this.toolkit.createButton(autoSelectOptionsComposite, "All dependencies", SWT.RADIO);
showAllDependencies.setLayoutData(new TableWrapData(TableWrapData.FILL));
showAllDependencies.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
view.setAutoSelectDecorator(new AllDependencyAlgorithm());
}
});
showSameModuleId = this.toolkit.createButton(autoSelectOptionsComposite, "Other revisions", SWT.RADIO);
showSameModuleId.setLayoutData(new TableWrapData(TableWrapData.FILL));
showSameModuleId.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
view.setAutoSelectDecorator(new SameModuleIdAlgorithm());
}
});
autoSelectOptions.setClient(autoSelectOptionsComposite);
Section filterOptions = this.toolkit.createSection(controlComposite, Section.EXPANDED);
filterOptions.setText("Filter Options");
filterOptions.setLayout(new FillLayout());
Composite filterOptionsComposite = this.toolkit.createComposite(filterOptions);
filterOptionsComposite.setLayout(new TableWrapLayout());
evictionFilterEnablement = this.toolkit.createButton(filterOptionsComposite, "Hide evicted nodes", SWT.CHECK);
evictionFilterEnablement.setLayoutData(new TableWrapData(TableWrapData.FILL));
evictionFilterEnablement.setSelection(true);
evictionFilter.setEnabled(true);