public void widgetSelected(SelectionEvent event) {
IStructuredSelection selection = (IStructuredSelection) EOGeneratorFormPage.this.getRefModelsTableViewer().getSelection();
if (!selection.isEmpty()) {
List<EOModelReference> refModels = EOGeneratorFormPage.this.getModel().getRefModels();
List<EOModelReference> newRefModels = new LinkedList<EOModelReference>(refModels);
Object[] selections = selection.toArray();
for (int i = 0; i < selections.length; i++) {
newRefModels.remove(selections[i]);
}
EOGeneratorFormPage.this.getModel().setRefModels(newRefModels);
EOGeneratorFormPage.this.getRefModelsTableViewer().refresh();