if (printMode == -1)
return;
PrintDialog dialog = new PrintDialog(shell, SWT.NULL);
PrinterData data = dialog.open();
if (data != null) {
PrintGraphicalViewerOperation op =
new PrintGraphicalViewerOperation(new Printer(data), viewer);
op.setPrintMode(printMode);
op.run(selectedFile.getName());
}
}