Package net.sourceforge.squirrel_sql.plugins.firebirdmanager

Examples of net.sourceforge.squirrel_sql.plugins.firebirdmanager.TextAreaOutputStream


      bckManager.setHost(jtextfieldBckDBHost.getText());
      bckManager.setPort(Integer.parseInt(jtextfieldBckPort.getText()));
      bckManager.setUser(jtextfieldUsername.getText());
      bckManager.setPassword(new String(jpasswordfieldPW.getPassword()));
     
      TextAreaOutputStream textOutputStream = new TextAreaOutputStream(jtextareaProcess, jscrollpaneProcess);
    bckManager.setLogger(textOutputStream);
    bckManager.setVerbose(jcheckboxDisplayProcess.isSelected());

    try {
      jtextareaProcess.setText("");
      if (jcheckboxBckMetadataOnly.isSelected()) {
        bckManager.backupMetadata();
      } else {
        bckManager.backupDatabase(options);
      }
      jtextareaProcess.append(i18n.INFO_BACKUP_COMPLETED);
      saveSessionPreferences();
    } catch (SQLException e) {
      jtextareaProcess.append(e.getLocalizedMessage()+ CR + i18n.INFO_BACKUP_CANCELED);
    }

    try {
      textOutputStream.close();
    } catch (IOException e) {
      log.error(e.getLocalizedMessage());
    }
  }
View Full Code Here


      bckManager.setPort(Integer.parseInt(jtextfieldResPort.getText()));
      bckManager.setUser(jtextfieldUsername.getText());
      bckManager.setPassword(new String(jpasswordfieldPW.getPassword()));

     
      TextAreaOutputStream textOutputStream = new TextAreaOutputStream(jtextareaProcess, jscrollpaneProcess);
    bckManager.setLogger(textOutputStream);
    bckManager.setVerbose(jcheckboxDisplayProcess.isSelected());

    try {
      jtextareaProcess.setText("");
      if (options == 0) {
        bckManager.restoreDatabase();
      } else {
        bckManager.restoreDatabase(options);
      }
      jtextareaProcess.append(i18n.INFO_RESTORE_COMPLETED);
    } catch (SQLException e) {
      jtextareaProcess.append(e.getLocalizedMessage()+ CR + i18n.INFO_RESTORE_CANCELED);
    }
   
    try {
      textOutputStream.close();
    } catch (IOException e) {
      log.error(e.getLocalizedMessage());
    }
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.plugins.firebirdmanager.TextAreaOutputStream

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.