int viewMode = IWorkbenchPage.VIEW_ACTIVATE;
for (Iterator<?> iter = selection.iterator(); iter.hasNext(); ) {
IRequestLogRecord record = (IRequestLogRecord) iter.next();
String secondaryId = UUID.randomUUID().toString();
RequestEditView view;
try {
view = (RequestEditView) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(RequestEditView.VIEW_ID, secondaryId, viewMode);
} catch (PartInitException e) {
ErrorDialog.displayExceptionError(getShell(), e);
return;
}
try {
view.setRequest(record);
} catch (URISyntaxException e) {
ErrorDialog.displayExceptionError(getShell(), e);
return;
}
viewMode = IWorkbenchPage.VIEW_VISIBLE;