*/
private void saveAs() {
final Object element = viewerSelection.getFirstElement();
if (element instanceof IAttachment) {
final IAttachment attachDoc = (IAttachment) element;
final File file = (File) attachDoc.getContent();
final FileDialog dialog = new FileDialog(saveAsButton.getShell(), SWT.SAVE);
dialog.setText(Messages.DocumentView_saveAsDialogTitle);
dialog.setOverwrite(true);
dialog.setFileName(DocUtils.getSaveAsFilename(file));
final String filePath = dialog.open();
if (filePath != null) {
final File newFile = new File(DocUtils.cleanFilename(filePath, file));
final boolean isSaved = attachDoc.saveAs(newFile);
if (isSaved) {
// Program.launch(file.getAbsolutePath());
MessageDialog.openInformation(saveAsButton.getShell(),
Messages.DocumentView_saveAsSuccessDialogTitle,
Messages.DocumentView_saveAsSuccessDialogMsg);