final IWorkbenchWindow window = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
if (window == null) {
return null;
}
final OpenModuleDialog dialog = new OpenModuleDialog(window.getShell());
final int resultCode = dialog.open();
if (resultCode != IDialogConstants.OK_ID) {
return null;
}
final Object[] result = dialog.getResult();
return result;
}