Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.SaveAsDialog.open()


            if ( !( getEditorInput() instanceof NonExistingServerConfigurationInput ) )
            {
                dialog.setOriginalFile( ResourcesPlugin.getWorkspace().getRoot().getFile(
                    new Path( getEditorInput().getToolTipText() ) ) );
            }
            if ( dialog.open() != Dialog.OK )
            {
                return false;
            }

            // Getting if the resulting file
View Full Code Here


            while ( !canOverwrite )
            {
                // Open FileDialog
                FileDialog dialog = new FileDialog( shell, SWT.SAVE );
                path = dialog.open();
                if ( path == null )
                {
                    return false;
                }
View Full Code Here

      String message= MessageFormat.format(fgResourceBundle.getString("Editor.warning.save.delete"), new Object[] { original.getName() }); //$NON-NLS-1$
      dialog.setErrorMessage(null);
      dialog.setMessage(message, IMessageProvider.WARNING);
    }
   
    if (dialog.open() == Window.CANCEL) {
      if (progressMonitor != null)
        progressMonitor.setCanceled(true);
      return;
    }
     
View Full Code Here

}

protected boolean performSaveAs() {
  SaveAsDialog dialog = new SaveAsDialog(getSite().getWorkbenchWindow().getShell());
  dialog.setOriginalFile(((IFileEditorInput)getEditorInput()).getFile());
  dialog.open();
  IPath path= dialog.getResult();
 
  if (path == null)
    return false;
 
View Full Code Here

          Messages.Fd2DiagramEditor_SavingDeletedFile, original
              .getName());
      dialog.setErrorMessage(null);
      dialog.setMessage(message, IMessageProvider.WARNING);
    }
    if (dialog.open() == Window.CANCEL) {
      if (progressMonitor != null) {
        progressMonitor.setCanceled(true);
      }
      return;
    }
View Full Code Here

   * @generated
   */
  @Override
  public void doSaveAs() {
    SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());
    saveAsDialog.open();
    IPath path = saveAsDialog.getResult();
    if (path != null) {
      IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
      if (file != null) {
        doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));
View Full Code Here

   * @generated
   */
  @Override
  public void doSaveAs() {
    SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());
    saveAsDialog.open();
    IPath path = saveAsDialog.getResult();
    if (path != null) {
      IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
      if (file != null) {
        doSaveAs(URI.createPlatformResourceURI(file.getFullPath().toString(), true), new FileEditorInput(file));
View Full Code Here

    SaveAsDialog dialog = new SaveAsDialog(getWorkbenchPart().getSite().getShell());
    dialog.setOriginalName(Messages.ExportAction_JPEG_ORIGINAL_TITLE);
    dialog.create();
    dialog.setMessage(BeansGraphPlugin.getResourceString("Editor.SaveAsDialog.message")); //$NON-NLS-1$
    dialog.setOriginalName(Messages.ExportAction_PNG_ORIGINAL_TITLE);
    dialog.open();
    IPath path = dialog.getResult();
    if (path != null) {
      IWorkspace workspace = ResourcesPlugin.getWorkspace();
      IFile file = workspace.getRoot().getFile(path);
      String ext = file.getFileExtension();
View Full Code Here

    SaveAsDialog dialog = new SaveAsDialog(getWorkbenchPart().getSite().getShell());
    dialog.setOriginalName("graph.jpg");
    dialog.create();
    dialog.setMessage(BeansGraphPlugin.getResourceString("Editor.SaveAsDialog.message"));
    dialog.setOriginalName("graph.png");
    dialog.open();
    IPath path = dialog.getResult();
    if (path != null) {
      IWorkspace workspace = ResourcesPlugin.getWorkspace();
      IFile file = workspace.getRoot().getFile(path);
      String ext = file.getFileExtension();
View Full Code Here

    SaveAsDialog dialog = new SaveAsDialog(getSite().getShell());
    dialog.setOriginalName("graph.jpg");
    dialog.create();
    dialog.setMessage(BeansGraphPlugin.getResourceString("Editor.SaveAsDialog.message"));
    dialog.setOriginalName("graph.png");
    dialog.open();
    IPath path = dialog.getResult();
    if (path != null) {
      IWorkspace workspace = ResourcesPlugin.getWorkspace();
      IFile file = workspace.getRoot().getFile(path);
      String ext = file.getFileExtension();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.