예제 #1
0
  // {{{ ok() method
  @Override
  public void ok() {
    if (nameTextField != null) {
      VFSFile vfsFile = browser.getSelectedFiles()[0];
      if ((vfsFile.getVFS().getCapabilities() & VFS.RENAME_CAP) != 0) {
        browser.rename(vfsFile, nameTextField.getText());
      }
    }

    GUIUtilities.saveGeometry(this, "propdialog");
    setVisible(false);
  } // }}}
예제 #2
0
  /**
   * The FilePropertiesDialog's constructor
   *
   * @param view The view
   * @param browser The VFSBrowser
   */
  public FilePropertiesDialog(View view, VFSBrowser browser, VFSFile[] files) {
    super(view, jEdit.getProperty("vfs.browser.properties.title"), true);
    GUIUtilities.loadGeometry(this, "propdialog");

    this.browser = browser;

    if (files.length > 0) selectedFiles = files;
    else selectedFiles = browser.getSelectedFiles();
    local = selectedFiles[0];
    createAndShowGUI();
  } // }}}