ServerAdapter adapter = new ServerAdapter();
String buttons[] = new String[] {
PHPServerUIMessages
.getString("PHPServersConfigurationBlock.new"), PHPServerUIMessages.getString("PHPServersConfigurationBlock.edit"), PHPServerUIMessages.getString("PHPServersConfigurationBlock.remove"), PHPServerUIMessages.getString("PHPServersConfigurationBlock.setDefault") }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
fServersList = new ListDialogField(adapter, buttons,
new PHPServersLabelProvider()) {
protected boolean managedButtonPressed(int index) {
if (index == getRemoveButtonIndex()) {
handleRemoveServer();
}