Examples of MessageBoxShell


Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

              if ( pos != -1 ){
               
                param_name = param_name.substring( 0, pos ).trim();
              }
             
              MessageBoxShell mb =
                new MessageBoxShell(
                  SWT.ICON_ERROR | SWT.OK,
                  MessageText.getString( "ConfigView.section.invalid.value.title"),
                  MessageText.getString(
                    "ConfigView.section.invalid.value",
                    new String[]{ val, param_name, Debug.getNestedExceptionMessage(e)}));
             
                  mb.setParent( parent.getShell());
                  mb.open(null);
            }
          }
        });
     
      label = new Label(area, SWT.NULL);
      gridData = new GridData(GridData.FILL_HORIZONTAL);
      label.setLayoutData(gridData);
     
      Long max_heap_mb = AEMemoryMonitor.getMaxHeapMB();
     
      if ( max_heap_mb > 0 ){
       
        Messages.setLanguageText(label,  "jvm.max.mem.current", new String[]{ DisplayFormatters.formatByteCountToKiBEtc( max_heap_mb*1024*1024, true )});
      }
    }
   
    {
        // min mem
     
      final int MIN_MIN_JVM = 8*1024*1024;
 
      long  min_mem = AEMemoryMonitor.getJVMLongOption( options, "-Xms" );
 
      GridData gridData = new GridData();
      Label label = new Label(area, SWT.NULL);
      label.setLayoutData(gridData);
      Messages.setLanguageText(label,  "jvm.min.mem", new String[]{encodeDisplayLong(MIN_MIN_JVM)});
 
      gridData = new GridData();
      gridData.widthHint = 125;
      final StringParameter min_vm = new StringParameter(area, "jvm.min.mem", "", false );
      min_vm.setLayoutData(gridData);
       
      min_vm.setValue( min_mem == -1?"":encodeDisplayLong( min_mem ));
     
      min_vm.addChangeListener(
        new ParameterChangeAdapter()
        {
          private String  last_value;
         
          public void
          parameterChanged(
            Parameter  p,
            boolean    caused_internally )
          {
            if ( min_vm.isDisposed()){
             
              min_vm.removeChangeListener( this );
             
              return;
            }
           
            String val = min_vm.getValue();
           
            if ( last_value != null && last_value.equals( val )){
             
              return;
            }
           
            last_value = val;
                     
            try{
              long min_mem = decodeDisplayLong( val );
             
              if ( min_mem < MIN_MIN_JVM ){
               
                throw( new Exception( "Min=" + encodeDisplayLong( MIN_MIN_JVM )));
              }
                         
              String[] options = platform.getExplicitVMOptions();
             
              options = AEMemoryMonitor.setJVMLongOption( options, "-Xms", min_mem );
 
              long  max_mem = AEMemoryMonitor.getJVMLongOption( options, "-Xmx" );
 
              if ( max_mem == -1 || max_mem < min_mem ){
               
                options = AEMemoryMonitor.setJVMLongOption( options, "-Xmx", min_mem );
              }
             
              platform.setExplicitVMOptions( options );
             
              buildOptions( parent, platform, area, true );
             
            }catch( Throwable e ){
             
              String param_name = MessageText.getString( "jvm.min.mem" );
             
              int  pos = param_name.indexOf( '[' );
             
              if ( pos != -1 ){
               
                param_name = param_name.substring( 0, pos ).trim();
              }
             
              MessageBoxShell mb =
                new MessageBoxShell(
                  SWT.ICON_ERROR | SWT.OK,
                  MessageText.getString( "ConfigView.section.invalid.value.title"),
                  MessageText.getString(
                    "ConfigView.section.invalid.value",
                    new String[]{ val, param_name, Debug.getNestedExceptionMessage(e)}));
             
                  mb.setParent( parent.getShell());
                  mb.open(null);
            }
          }
        });
     
      label = new Label(area, SWT.NULL);
      gridData = new GridData(GridData.FILL_HORIZONTAL);
      label.setLayoutData(gridData);
    }
   
    {
        // max DIRECT mem
     
      final int MIN_DIRECT_JVM = 32*1024*1024;
     
      final String OPTION_KEY = "-XX:MaxDirectMemorySize=";
     
      long  max_direct = AEMemoryMonitor.getJVMLongOption( options, OPTION_KEY );
 
      GridData gridData = new GridData();
      Label label = new Label(area, SWT.NULL);
      label.setLayoutData(gridData);
      Messages.setLanguageText(label,  "jvm.max.direct.mem", new String[]{encodeDisplayLong(MIN_DIRECT_JVM)});
 
      gridData = new GridData();
      gridData.widthHint = 125;
      final StringParameter max_direct_vm = new StringParameter(area, "jvm.max.direct.mem", "", false );
      max_direct_vm.setLayoutData(gridData);
       
      max_direct_vm.setValue( max_direct == -1?"":encodeDisplayLong( max_direct ));
     
      max_direct_vm.addChangeListener(
        new ParameterChangeAdapter()
        {
          private String  last_value;
         
          public void
          parameterChanged(
            Parameter  p,
            boolean    caused_internally )
          {
            if ( max_direct_vm.isDisposed()){
             
              max_direct_vm.removeChangeListener( this );
             
              return;
            }
           
            String val = max_direct_vm.getValue();
           
            if ( last_value != null && last_value.equals( val )){
             
              return;
            }
           
            last_value = val;
                     
            try{
              long max_direct = decodeDisplayLong( val );
             
              if ( max_direct < MIN_DIRECT_JVM ){
               
                throw( new Exception( "Min=" + encodeDisplayLong( MIN_DIRECT_JVM )));
              }
                         
              String[] options = platform.getExplicitVMOptions();
             
              options = AEMemoryMonitor.setJVMLongOption( options, OPTION_KEY, max_direct );
               
              platform.setExplicitVMOptions( options );
             
              buildOptions( parent, platform, area, true );
             
            }catch( Throwable e ){
             
              String param_name = MessageText.getString( "jvm.max.direct.mem" );
             
              int  pos = param_name.indexOf( '[' );
             
              if ( pos != -1 ){
               
                param_name = param_name.substring( 0, pos ).trim();
              }
             
              MessageBoxShell mb =
                new MessageBoxShell(
                  SWT.ICON_ERROR | SWT.OK,
                  MessageText.getString( "ConfigView.section.invalid.value.title"),
                  MessageText.getString(
                    "ConfigView.section.invalid.value",
                    new String[]{ val, param_name, Debug.getNestedExceptionMessage(e)}));
             
                  mb.setParent( parent.getShell());
                  mb.open(null);
            }
          }
        });
     
      label = new Label(area, SWT.NULL);
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

          shell.dispose();
        }
        URLInfo hitUrl = spText.getHitUrl(e.x, e.y);
        if (hitUrl != null) {
          if (hitUrl.url.equals("details")) {
            MessageBoxShell mb = new MessageBoxShell(Constants.APP_NAME,
                logAlert.details, new String[] {
                  MessageText.getString("Button.ok")
                }, 0);
            mb.setUseTextBox(true);
            mb.setParent(Utils.findAnyShell());
            mb.open(null);
          } else {
            Utils.launch(hitUrl.url);
          }
        }
      }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

            new Listener()
          {
                public void
            handleEvent(Event event)
                {
                  MessageBoxShell mb = new MessageBoxShell(
                      SWT.ICON_WARNING | SWT.OK | SWT.CANCEL,
                      MessageText.getString("ConfigView.section.security.resetkey.warning.title"),
                      MessageText.getString("ConfigView.section.security.resetkey.warning"));
                  mb.setDefaultButtonUsingStyle(SWT.CANCEL);
                  mb.setParent(parent.getShell());

                  mb.open(new UserPrompterResultListener() {
                    public void prompterClosed(int returnVal) {
                      if (returnVal != SWT.OK) {
                        return;
                      }
                     
                      try{
                        crypt_man.getECCHandler().resetKeys( "Manual key reset" );
                       
                      }catch( Throwable e ){
                       
                        MessageBoxShell mb = new MessageBoxShell(
                            SWT.ICON_ERROR | SWT.OK,
                            MessageText.getString( "ConfigView.section.security.resetkey.error.title"),
                            getError( e ));
                        mb.setParent(parent.getShell());
                        mb.open(null);
                      }
                    }
                  });
                }
            });
       
        new Label(crypto_group, SWT.NULL );
         
          // unlock
       
        Label priv_key_label = new Label(crypto_group, SWT.NULL );
        Messages.setLanguageText(priv_key_label, "ConfigView.section.security.unlockkey");
 
        Button priv_key_button = new Button(crypto_group, SWT.PUSH);
        Messages.setLanguageText(priv_key_button, "ConfigView.section.security.unlockkey.button");
 
        priv_key_button.addListener(SWT.Selection,
            new Listener()
          {
                public void
            handleEvent(Event event)
                {
                  try{
                    crypt_man.getECCHandler().getEncryptedPrivateKey( "Manual unlock" );
                   
                  }catch( Throwable e ){
                   
                 MessageBoxShell mb = new MessageBoxShell(
                   SWT.ICON_ERROR | SWT.OK,
                   MessageText.getString( "ConfigView.section.security.resetkey.error.title" ),
                   getError( e ));
                 mb.setParent(parent.getShell());
                 mb.open(null);
                  };

                }
            });
       
        new Label(crypto_group, SWT.NULL );
       
          // backup
       
        Label backup_keys_label = new Label(crypto_group, SWT.NULL );
        Messages.setLanguageText(backup_keys_label, "ConfigView.section.security.backupkeys");
 
        final Button backup_keys_button = new Button(crypto_group, SWT.PUSH);
        Messages.setLanguageText(backup_keys_button, "ConfigView.section.security.backupkeys.button");
 
        backup_keys_button.addListener(SWT.Selection,
            new Listener()
          {
                public void
            handleEvent(Event event)
                {
                  FileDialog dialog = new FileDialog( backup_keys_button.getShell(), SWT.APPLICATION_MODAL );
                 
                  String  target = dialog.open();
                 
                  if ( target != null ){
                   
                    try{
                      String  keys = crypt_man.getECCHandler().exportKeys();
                     
                      PrintWriter pw = new PrintWriter(new FileWriter( target ));
                     
                      pw.println( keys );
                     
                      pw.close();
                   
                    }catch( Throwable e ){
                   
                      MessageBoxShell mb = new MessageBoxShell(
                          SWT.ICON_ERROR | SWT.OK,
                          MessageText.getString( "ConfigView.section.security.op.error.title" ),
                          MessageText.getString( "ConfigView.section.security.op.error",
                              new String[]{ getError(e) }));
                      mb.setParent(parent.getShell());
                      mb.open(null);
                    }
                  }
                }
            });
       
        new Label(crypto_group, SWT.NULL );
       
          // restore
       
        Label restore_keys_label = new Label(crypto_group, SWT.NULL );
        Messages.setLanguageText(restore_keys_label, "ConfigView.section.security.restorekeys");
 
        final Button restore_keys_button = new Button(crypto_group, SWT.PUSH);
        Messages.setLanguageText(restore_keys_button, "ConfigView.section.security.restorekeys.button");
 
        restore_keys_button.addListener(SWT.Selection,
            new Listener()
          {
                public void
            handleEvent(Event event)
                {
                  FileDialog dialog = new FileDialog( backup_keys_button.getShell(), SWT.APPLICATION_MODAL );
                 
                  String  target = dialog.open();
                 
                  if ( target != null ){
                   
                    try{
                      LineNumberReader reader = new LineNumberReadernew FileReader( target ));
                     
                      String  str = "";
                     
                      while( true ){
                       
                        String  line = reader.readLine();
                       
                        if ( line == null ){
                         
                          break;
                        }
                       
                        str += line + "\r\n";
                      }
                     
                      boolean restart = crypt_man.getECCHandler().importKeys(str);
           
                      if ( restart ){
                       
                        MessageBoxShell mb = new MessageBoxShell(
                            SWT.ICON_INFORMATION | SWT.OK,
                            MessageText.getString( "ConfigView.section.security.restart.title" ),
                            MessageText.getString( "ConfigView.section.security.restart.msg" ));
                        mb.setParent(parent.getShell());
                        mb.open(null);
 
                       
                        UIFunctionsSWT uiFunctions = UIFunctionsManagerSWT.getUIFunctionsSWT();
                       
                          if ( uiFunctions != null ){
                           
                            uiFunctions.dispose(true, false);
                          }
                      }
                    }catch( Throwable e ){
                   
                      MessageBoxShell mb = new MessageBoxShell
                        SWT.ICON_ERROR | SWT.OK,
                        MessageText.getString( "ConfigView.section.security.op.error.title" ),
                        MessageText.getString( "ConfigView.section.security.op.error",
                            new String[]{ getError( e )}));
                      mb.setParent(parent.getShell());
                      mb.open(null);
                    }
                  }
                }
            });
       
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

    dDialog.setText(MessageText.getString("FilesView.rename.choose.path.dir"));
    return dDialog.open();
  }

  private static boolean askCanOverwrite(File file) {
    MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.CANCEL,
        MessageText.getString("FilesView.rename.confirm.delete.title"),
        MessageText.getString("FilesView.rename.confirm.delete.text",
            new String[] {
              file.toString()
            }));
    mb.setDefaultButtonUsingStyle(SWT.OK);
    mb.setRememberOnlyIfButton(0);
    mb.setRemember("FilesView.messagebox.rename.id", true, null);
    mb.setLeftImage(SWT.ICON_WARNING);
    mb.open(null);
    return mb.waitUntilClosed() == SWT.OK;
  }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

        public void run(AzureusCoreOperation operation) {
          result[0] = fileInfo.setLink(target);

          manager.setUserData("is_changing_links", false);
          if (!result[0]) {
            new MessageBoxShell(SWT.ICON_ERROR | SWT.OK,
                MessageText.getString("FilesView.rename.failed.title"),
                MessageText.getString("FilesView.rename.failed.text")).open(null);
          }
        }
      });
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

          perform_check = true;
        }

        if (perform_check && existing_file.exists()) {
          if (delete_action) {
            MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.CANCEL,
                MessageText.getString("FilesView.rename.confirm.delete.title"),
                MessageText.getString("FilesView.rename.confirm.delete.text",
                    new String[] {
                      existing_file.toString()
                    }));
            mb.setDefaultButtonUsingStyle(SWT.OK);
            mb.setRememberOnlyIfButton(0);
            mb.setRemember("FilesView.messagebox.delete.id", false, null);
            mb.setLeftImage(SWT.ICON_WARNING);
            mb.open(null);

            boolean wants_to_delete = mb.waitUntilClosed() == SWT.OK;

            if ( wants_to_delete ){
             
              new_storage_type = compact_target;
             
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

                    hasUpdates = true;
                    break;
                  }
                }
                if (!hasUpdates) {
                  MessageBoxShell mb = new MessageBoxShell(
                      SWT.ICON_INFORMATION | SWT.OK,
                      "window.update.noupdates", (String[]) null);
                  mb.open(null);
                }
              }
            });
      }
    });
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

      FileUtil.mkdirs(fileDefSavePath);
    }

    boolean isPathInvalid = cmbDataDir.getText().length() == 0 || file.isFile();
    if (!isPathInvalid && !file.isDirectory()) {
      MessageBoxShell mb = new MessageBoxShell(SWT.YES | SWT.NO
          | SWT.ICON_QUESTION, "OpenTorrentWindow.mb.askCreateDir",
          new String[] {
            file.toString()
          });
      mb.open(null);
      int doCreate = mb.waitUntilClosed();

      if (doCreate == SWT.YES)
        isPathInvalid = !FileUtil.mkdirs(file);
      else {
        cmbDataDir.setFocus();
        return;
      }
    }

    if (isPathInvalid) {
      MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.ICON_ERROR,
          "OpenTorrentWindow.mb.noGlobalDestDir", new String[] {
            file.toString()
          });
      mb.open(null);
      cmbDataDir.setFocus();
      return;
    }

    String sExistingFiles = "";
    int iNumExistingFiles = 0;
    for (int i = 0; i < torrentList.size(); i++) {
      TorrentInfo info = (TorrentInfo) torrentList.get(i);

      file = new File(info.getDataDir());
     
      // Need to make directory now, or single file torrent will take the
      // "dest dir" as their filename.  ie:
      // 1) Add single file torrent with named "hi.exe"
      // 2) type a non-existant directory c:\test\moo
      // 3) unselect the torrent
      // 4) change the global def directory to a real one
      // 5) click ok.  "hi.exe" will be written as moo in c:\test     
      if (!file.isDirectory() && !FileUtil.mkdirs(file)) {
        MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.ICON_ERROR,
            "OpenTorrentWindow.mb.noDestDir", new String[] {
              file.toString(),
              info.getTorrentName()
            });
        mb.open(null);
        return;
      }

      if (!info.isValid) {
        MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.ICON_ERROR,
            "OpenTorrentWindow.mb.notValid", new String[] {
              info.getTorrentName()
            });
        mb.open(null);
        return;
      }

      TorrentFileInfo[] files = info.getFiles();
      for (int j = 0; j < files.length; j++) {
        TorrentFileInfo fileInfo = files[j];
        if (fileInfo.getDestFileFullName().exists()) {
          sExistingFiles += fileInfo.orgFullName + " - " + info.getTorrentName()
              + "\n";
          iNumExistingFiles++;
          if (iNumExistingFiles > 5) {
            // this has the potential effect of adding 5 files from the first
            // torrent and then 1 file from each of the remaining torrents
            break;
          }
        }
      }
    }

    if (sExistingFiles.length() > 0) {
      if (iNumExistingFiles > 5) {
        sExistingFiles += MessageText.getString(
            "OpenTorrentWindow.mb.existingFiles.partialList", new String[] {
              "" + iNumExistingFiles
            })
            + "\n";
      }

      MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.CANCEL
          | SWT.ICON_WARNING, "OpenTorrentWindow.mb.existingFiles",
          new String[] {
            sExistingFiles
          });
      mb.open(null);
      if (mb.waitUntilClosed() != SWT.OK) {
        return;
      }
    }

    String sDefaultPath = COConfigurationManager.getStringParameter(PARAM_DEFSAVEPATH);
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

      if (fileInfo.parent.iStartID == STARTMODE_SEEDING) {
        File file = new File(sNewName);
        if (file.length() == fileInfo.lSize)
          fileInfo.setFullDestName(sNewName);
        else {
          MessageBoxShell mb = new MessageBoxShell(SWT.OK,
              "OpenTorrentWindow.mb.badSize", new String[] {
                file.getName(),
                fileInfo.orgFullName
              });
          mb.open(null);
        }
      } else
        fileInfo.setFullDestName(sNewName);

    } // for i
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

                  "OpenTorrentWindow.mb.openError", fOriginal.toString(), new String[] {
                    UrlUtils.decode(sOriginatingLocation),
                    "Not a File"
                  }, -1 );
            else {
              MessageBoxShell mb = new MessageBoxShell(SWT.OK,
                  "OpenTorrentWindow.mb.openError", new String[] {
                    sOriginatingLocation,
                    "Not a File"
                  });
              mb.open(null);
            }
          }
        });
        return null;
      }

      if (fOriginal.length() > 20*1024*1024) {
        Utils.execSWTThread(new AERunnable() {
          public void runSupport() {
            if (shell == null)
              new MessageSlideShell(Display.getCurrent(), SWT.ICON_ERROR,
                  "OpenTorrentWindow.mb.openError", fOriginal.toString(), new String[] {
                    UrlUtils.decode(sOriginatingLocation),
                    "Too large to be a torrent"
                  }, -1 );
            else {
              MessageBoxShell mb = new MessageBoxShell(SWT.OK,
                  "OpenTorrentWindow.mb.openError", new String[] {
                    sOriginatingLocation,
                    "Too large to be a torrent"
                  });
              mb.open(null);
            }
          }
        });
        return null;
      }

      torrentFile = TorrentUtils.copyTorrentFileToSaveDir(fOriginal, true);
      bDeleteFileOnCancel = !fOriginal.equals(torrentFile);
      // TODO if the files are still equal, and it isn't in the save
      //       dir, we should copy it to a temp file in case something
      //       re-writes it.  No need to copy a torrent coming from the
      //       downloader though..
    } catch (IOException e1) {
      // Use torrent in wherever it is and hope for the best
      // XXX Should error instead?
      torrentFile = new File(sFileName);
    }

    VuzeFileHandler vfh = VuzeFileHandler.getSingleton();
   
    VuzeFile vf = vfh.loadVuzeFile( torrentFile );
   
    if ( vf != null ){
     
        vfh.handleFiles( new VuzeFile[]{ vf }, VuzeFileComponent.COMP_TYPE_NONE );

        return null;
    }
   
    // Do a quick check to see if it's a torrent
    if (!TorrentUtil.isFileTorrent(torrentFile, shellForChildren,
        torrentFile.getName())) {
      if (bDeleteFileOnCancel) {
        torrentFile.delete();
      }
      return null;
    }

    // Load up the torrent, see it it's real
    try {
      torrent = TorrentUtils.readFromFile(torrentFile, false);
    } catch (final TOTorrentException e) {
     
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          if (shell == null)
            new MessageSlideShell(Display.getCurrent(), SWT.ICON_ERROR,
                "OpenTorrentWindow.mb.openError", Debug.getStackTrace(e),
                new String[] {
                  sOriginatingLocation,
                  e.getMessage()
                }, -1 );
          else {
            MessageBoxShell mb = new MessageBoxShell(SWT.OK,
                "OpenTorrentWindow.mb.openError", new String[] {
                  sOriginatingLocation,
                  e.getMessage()
                });
            mb.open(null);
          }
        }
      });

      if (bDeleteFileOnCancel)
        torrentFile.delete();

      return null;
    }

    String sExistingName = null;
    try {
      HashWrapper hash = torrent.getHashWrapper();
      if (hash != null) {
        for (int i = 0; i < torrentList.size(); i++) {
          try {
            TorrentInfo existing = (TorrentInfo) torrentList.get(i);
            if (existing.torrent.getHashWrapper().equals(hash)) {
              //sExistingName = existing.sOriginatingLocation;

              // Exit without warning when it already exists in list
              if (bDeleteFileOnCancel)
                torrentFile.delete();

              return null;
            }
          } catch (Exception e) {
          }
        }
      }
    } catch (Exception e) {
    }

    DownloadManager existingDownload = null;
    if (sExistingName == null) {
      // Check if torrent already exists in gm, and add if not
      existingDownload = (gm == null) ? null : gm.getDownloadManager(torrent);
      if (existingDownload != null) {
        sExistingName = existingDownload.getDisplayName();
      }
    }

    if (sExistingName == null) {
      info = new TorrentInfo(torrentFile.getAbsolutePath(), torrent,
          bDeleteFileOnCancel);
      info.sOriginatingLocation = sOriginatingLocation;
      torrentList.add(info);

    } else {

      final String sfExistingName = sExistingName;
      final DownloadManager fExistingDownload = existingDownload;
      Utils.execSWTThread(new AERunnable() {
        public void runSupport() {
          Shell mainShell = UIFunctionsManagerSWT.getUIFunctionsSWT().getMainShell();
          if (Display.getDefault().getActiveShell() == null || !mainShell.isVisible() || mainShell.getMinimized() ) {
            new MessageSlideShell(Display.getCurrent(), SWT.ICON_INFORMATION,
                MSG_ALREADY_EXISTS, null, new String[] {
                  ":" + sOriginatingLocation,
                  sfExistingName,
                  MessageText.getString(MSG_ALREADY_EXISTS_NAME),
                }, new Object[] {
                  fExistingDownload
                }, -1 );
          } else {
            MessageBoxShell mb = new MessageBoxShell(SWT.OK, MSG_ALREADY_EXISTS,
                new String[] {
                  ":" + sOriginatingLocation,
                  sfExistingName,
                  MessageText.getString(MSG_ALREADY_EXISTS_NAME),
                });
            mb.open(null);
          }
        }
      });

      if (bDeleteFileOnCancel)
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.