if (window == null) {
return null;
}
final Shell parent = window.getShell();
final SuiteListSelectionDialog dialog = new SuiteListSelectionDialog(parent, choices);
dialog.setTitle("Select parameter definition file");
final int resultCode = dialog.open();
if (resultCode != IDialogConstants.OK_ID) {
return null;
}
final Object[] result = dialog.getResult();
if (result == null || result.length == 0 || result[0] instanceof IFile == false) {
return null;
}
return (IFile) result[0];