protected void performSaveAs(IProgressMonitor progressMonitor) {
Shell shell = getSite().getShell();
final IEditorInput input = getEditorInput();
IDocumentProvider provider = getDocumentProvider();
SaveAsDialog dialog = new SaveAsDialog(shell);
dialog.setOriginalName(input.getName());
dialog.create();
if (dialog.open() == Window.CANCEL) {
if (progressMonitor != null)
progressMonitor.setCanceled(true);
return;
}
IPath newPath = dialog.getResult();
if (newPath == null) {
if (progressMonitor != null)
progressMonitor.setCanceled(true);
return;
}