PrinterData data = dialog.open();
if (data != null) {
PrintGraphicalViewerOperation op =
new PrintGraphicalViewerOperation(new Printer(data), viewer);
op.setPrintMode(printMode);
op.run(selectedFile.getName());
}
}
/**
* @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)