});
nCaptionLabel = new Label(filteredLinksComposite, SWT.NONE);
nCaptionLabel.setText("number of sub-patterns:");
nScale = new Scale(filteredLinksComposite, SWT.NONE);
nScale.setMinimum(1);
nScale.setMaximum(10);
nScale.setSelection(3);
nScale.setIncrement(1);
nScale.setLayoutData(gridData);
nScale.setToolTipText("choose here the number of computed sub-patterns for the similarity check");
nScale.setPageIncrement(1);
nLabel = new Label(filteredLinksComposite, SWT.NONE);
nLabel.setToolTipText("the number of computed sub-patterns for the similarity check");
nCaptionLabel.setToolTipText(nLabel.getToolTipText());
nLabel.setText("3"); // default value
gridData = new GridData();
gridData.horizontalSpan = 2;
gridData.horizontalAlignment = SWT.FILL;
gridData.grabExcessHorizontalSpace = true;
nLabel.setLayoutData(gridData);
nScale.addSelectionListener(new SelectionListener() {
@Override
public void widgetSelected(SelectionEvent e) {
nLabel.setText(new Integer(getN()).toString());
updateLists(false);
}
@Override
public void widgetDefaultSelected(SelectionEvent e) {
}
});
accuracyCaptionLabel = new Label(filteredLinksComposite, SWT.NONE);
accuracyCaptionLabel.setText("accuracy:");
accuracyScale = new Scale(filteredLinksComposite, SWT.NONE);
accuracyScale.setMinimum(0);
accuracyScale.setMaximum(10);
accuracyScale.setSelection(8);
accuracyScale.setIncrement(1);
accuracyScale.setLayoutData(gridData);