Package net.sourceforge.syncyoursecrets.model.pw

Examples of net.sourceforge.syncyoursecrets.model.pw.PWList


   */
  public void mergeWithFile(String password, File file) throws Exception {
    Document doc = XmlSerializeTool.readEncryptedFile(password, file);

    Element root = doc.getDocumentElement();
    PWList other = new PWList(root);
    this.list = (PWList) list.merge(other);
    viewer.refresh();
  }
View Full Code Here


    this.filePw = password;
    this.openedFile = file;
    Document doc = XmlSerializeTool.readEncryptedFile(password, file);

    Element root = doc.getDocumentElement();
    list = new PWList(root);
    viewer.refresh();
  }
View Full Code Here

   *
   * @throws ParserConfigurationException
   *             the parser configuration exception
   */
  public void createNew() throws ParserConfigurationException {
    list = new PWList();
    this.filePw = null;
    this.openedFile = null;

    viewer.refresh();
  }
View Full Code Here

   */
  public PWListContentProvider(Viewer viewer) {

    this.viewer = viewer;
    try {
      this.list = new PWList();
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot instantiate PWList, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }
View Full Code Here

    logger.debug("Merging with file " + file.getAbsolutePath());
    try {
      doc = XmlSerializeTool.readEncryptedFile(password, file);

      Element root = doc.getDocumentElement();
      PWList other = new PWList(root);

      PWList merged = (PWList) list.merge(other);

      this.inputChanged(viewer, this.list, merged);

    } catch (SysXmlBaseException ex) {
      String msg = "Merge with " + file.getAbsolutePath() + " failed\n"
View Full Code Here

      this.openedFile = file;
      Document doc = XmlSerializeTool.readEncryptedFile(password, file);

      Element root = doc.getDocumentElement();

      this.inputChanged(viewer, this.list, new PWList(root));

    } catch (SysXmlBaseException ex) {
      String msg = "Load " + file.getAbsolutePath() + " failed\n"
          + ex.getMessage();
View Full Code Here

   */
  public void createNew() throws ParserConfigurationException {
    logger.debug("entering createNew");

    try {
      this.list = new PWList();
    } catch (SysInvalidArgumentException ex) {
      String msg = "Cannot instantiate PWList, this is a bug";
      logger.fatal(msg, ex);
      throw new SysRuntimeException(msg, ex);
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.syncyoursecrets.model.pw.PWList

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.