if (dlg.open() == Window.OK) {
Object[] selectedTableNameObjs = dlg.getResult();
String[] selectedTableNames = new String[selectedTableNameObjs.length];
System.arraycopy(selectedTableNameObjs, 0, selectedTableNames, 0, selectedTableNameObjs.length);
List<String> selectedTableNamesList = Arrays.asList(selectedTableNames);
File reverseEngineeredEOModelFolder = reverseEngineer.reverseEngineerWithTableNamesIntoModel(selectedTableNamesList);
Set<EOModelVerificationFailure> failures = new HashSet<EOModelVerificationFailure>();
model.importEntitiesFromModel(reverseEngineeredEOModelFolder.toURL(), failures);
if (failures.size() > 0) {
EOModelErrorDialog dialog = new EOModelErrorDialog(getWindow().getShell(), failures);
dialog.open();