IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
IEditorPart editor = page.getActiveEditor();
SaveAsWizard wizard = new SaveAsWizard();
wizard.init(workbench, new StructuredSelection(editor));
WizardDialog dialog = new WizardDialog(window.getShell(), wizard);
dialog.open();
}