Examples of PWEntry


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

  /**
   * Adds a new entry.
   */
  public void addEntry() {
    // create new element and add it to the list
    PWEntry entry = new PWEntry("New Entry");
    try {
      entry.setPassword("");
      entry.setUser("");
      entry.setRemark("");
      entry.setUrl("");
    } catch (ElementDeletedException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

View Full Code Here

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

   * Update the underlying PWEntry with the properties currently entered in
   * the UI.
   */
  private void updateEntry() {
    if (listenerEnabled) {
      PWEntry entry = this.input.getPwEntry();
      if (entry != null && !entry.isDeleted()) {
        entry.setName(this.name.getText());
        try {
          entry.setUser(this.user.getText());
          entry.setPassword(this.password.getText());
          entry.setUrl(this.url.getText());
          entry.setRemark(this.remark.getText());
          entry.setEmail(this.email.getText());
          setPartName(this.name.getText());
        } catch (ElementDeletedException e) {
          // should not happen, as we check for deleted before
          e.printStackTrace();
        }
View Full Code Here

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

      if (obj != null) {

        name.setText(obj.toString());

        if (obj instanceof PWEntry) {
          PWEntry entry = (PWEntry) obj;
          this.updateFromEntry(entry);

        }
      }
View Full Code Here

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

    // Open an editor for the current selection
    try {
      if (obj != null) {
        if (obj instanceof PWEntry) {
          logger.debug("Selected PWEntry");
          PWEntry pwEntry = (PWEntry) obj;
          IEditorInput input = new PWEditorInput(view, pwEntry);

          reuseEditor(page, viewer, input, PWEntryEditor.ID);

        } else if (obj instanceof PWTable) {
View Full Code Here

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

  public void addEntry() {
    logger.debug("entering addEntry");
    // create new element and add it to the list

    try {
      PWEntry entry = new PWEntry("New Entry");
      entry.setPassword("");
      entry.setUser("");
      entry.setRemark("");
      entry.setUrl("");

      list.add(entry);
      viewer.refresh();

    } catch (SysGenericException ex) {
View Full Code Here

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

   * the UI.
   */
  private void updateEntry() {
    if (listenerEnabled) {
      logger.trace("Updating Entry");
      PWEntry entry = this.input.getPwEntry();
      if (entry != null && !entry.isDeleted()) {
        entry.setName(this.name.getText());
        try {
          entry.setUser(this.user.getText());
          entry.setPassword(this.password.getText());
          entry.setUrl(this.url.getText());
          entry.setRemark(this.remark.getText());
          entry.setEmail(this.email.getText());
          setPartName(this.name.getText());
        } catch (ElementDeletedException e) {
          String msg = ("Accessing deleted entry. This is a bug");
          logger.fatal(msg);
          throw new SysRuntimeException(msg, e);
View Full Code Here

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

      // Open an editor for the current selection
      if (obj != null) {
        if (obj instanceof PWEntry) {

          try {
            PWEntry pwEntry = (PWEntry) obj;
            PWEditorInput input = new PWEditorInput(view, pwEntry);
            IEditorReference[] editorReferences = page
                .getEditorReferences();

            PWEntryEditor editor = null;
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.