Package org.eclipse.jgit.transport

Examples of org.eclipse.jgit.transport.CredentialItem$Password


   */
  private void updateValues() {
    for (Control control : editingControls) {
      if (control instanceof Text) {
        Text textControl = (Text) control;
        CredentialItem itemToUpdate = (CredentialItem) textControl.getData(KEY_ITEM);
        String value = textControl.getText();
        updateValue(itemToUpdate, value);
      } else if (control instanceof Button) {
        Button checkBoxControl = (Button) control;
        CredentialItem itemToUpdate = (CredentialItem) checkBoxControl.getData(KEY_ITEM);
        boolean value = checkBoxControl.getSelection();
        updateValue(itemToUpdate, value);
      }
    }
  }
View Full Code Here


      public void run() {
        Shell shell = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getShell();

        if (items.length == 1) {
          CredentialItem item = items[0];
          result[0] = getSingleSpecial(shell, uri, item);
        } else {
          result[0] = getMultiSpecial(shell, uri, items);
        }
      }
View Full Code Here

  @Override
  public boolean get(URIish uri, CredentialItem... items)
      throws UnsupportedCredentialItem {
    boolean ok = true;
    for (int i = 0; i < items.length && ok; i++) {
      CredentialItem item = items[i];

      if (item instanceof CredentialItem.StringType)
        ok = get((CredentialItem.StringType) item);

      else if (item instanceof CredentialItem.CharArrayType)
        ok = get((CredentialItem.CharArrayType) item);

      else if (item instanceof CredentialItem.YesNoType)
        ok = get((CredentialItem.YesNoType) item);

      else if (item instanceof CredentialItem.InformationalMessage)
        ok = get((CredentialItem.InformationalMessage) item);

      else
        throw new UnsupportedCredentialItem(uri, item.getPromptText());
    }
    return ok;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.transport.CredentialItem$Password

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.