removeButton.setEnabled(false);
removeButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
Object[] selectedURLs = selection.toArray();
for (Object selectedURL : selectedURLs) {
urls.remove(selectedURL);
update();
}
}