@SuppressWarnings("unchecked") protected void removeSelectedEngineers(){
  ISelection selection=engineersTable.getSelection();
  if (!(selection instanceof IStructuredSelection)) {
    return;
  }
  IStructuredSelection structuredSelection=(IStructuredSelection)selection;
  Iterator<String> iterator=structuredSelection.iterator();
  while (iterator.hasNext()) {
    String engineerName=iterator.next();
    engineers.remove(engineerName);
    migrationTask.removeEngineer(engineerName);
  }
  engineersTable.refresh(false);
}

@ SuppressWarnings ( "unchecked" ) protected void removeSelectedEngineers ( ) { ISelection selection = engineersTable . getSelection ( ) ; if ( ! ( selection instanceof IStructuredSelection ) ) { return ; } IStructuredSelection structuredSelection = ( IStructuredSelection ) selection ; Iterator < String > iterator = structuredSelection . iterator ( ) ; while ( iterator . hasNext ( ) ) { String engineerName = iterator . next ( ) ; engineers . remove ( engineerName ) ; migrationTask . removeEngineer ( engineerName ) ; } engineersTable . refresh ( false ) ; }
remove the selected engineers in the table from the list and the model . works with multiple names selected .
