Package org.eclipse.ui.dialogs

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


    fileName = fileName.substring(0, fileName.lastIndexOf("."));
    dialog.setTitle("Export to image");
    dialog.setOriginalFile(editorFile);
    dialog.create();
    dialog.setMessage("Specify a name and location for the image. Either enter .png, .jpg or .bmp extension.");
    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


  public boolean performSaveAs() {
    SaveAsDialog dialog = new SaveAsDialog(getSite().getWorkbenchWindow()
        .getShell());
    dialog.setOriginalFile(((WebflowEditorInput) getEditorInput())
        .getFile());
    dialog.open();
    IPath path = dialog.getResult();

    this.isCurrentlySaving = true;

    if (path == null)
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

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.