Package org.eclipse.php.internal.ui.dialogs.saveFiles

Examples of org.eclipse.php.internal.ui.dialogs.saveFiles.SaveAsDialog


  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;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.dialogs.saveFiles.SaveAsDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.