public void widgetSelected(SelectionEvent e) {
populateAvailableRulesTable(propertyPage.getProject());
}
});
final SashForm sash = new SashForm(this, SWT.VERTICAL);
GridData layoutData = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_HORIZONTAL);
layoutData.heightHint = 400;
layoutData.widthHint = 550;
sash.setLayoutData(layoutData);
Table availableRulesTable = createDetectorsTableViewer(sash, page.getProject());
GridData tableLayoutData = new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL | GridData.GRAB_HORIZONTAL
| GridData.GRAB_VERTICAL);
tableLayoutData.heightHint = 300;
tableLayoutData.widthHint = 550;
availableRulesTable.setLayoutData(tableLayoutData);
Group group = new Group(sash, SWT.NONE);
group.setLayout(new GridLayout());
GridData data = new GridData(GridData.FILL_BOTH);
group.setLayoutData(data);
group.setText("Detector details");
final Text text = new Text(group, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.WRAP);
GridData layoutData2 = new GridData(GridData.FILL_BOTH);
text.setLayoutData(layoutData2);
text.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
sash.setWeights(new int[] { 3, 1 });
availableRulesTable.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
widgetSelected(e);
}