sourceFolderGroup.setLayoutData(gd);
sourceFolderGroup.setText("PHP executable");
GridData gridData = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gridData.horizontalSpan = 3;
Link prefLink = new Link(sourceFolderGroup, SWT.WRAP);
prefLink.setText("You can add PHP binaries in the <a>PHP Executables</a> preference page.");
prefLink.setLayoutData(gridData);
prefLink.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer)getPreferenceContainer();
container.openPage(PHPsPreferencePage.ID, null);
};
});
Link helpLink = new Link(sourceFolderGroup, SWT.WRAP);
helpLink.setLayoutData(gridData);
helpLink.setText("See <a>phptherightway.com</a> if you need help installing the PHP cli.");
helpLink.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
try {
PlatformUI
.getWorkbench()
.getBrowserSupport()