1 package com.proalpha.pds.gitutils.cherrypick;
 
    3 import org.eclipse.jface.dialogs.IMessageProvider;
 
    4 import org.eclipse.jface.dialogs.TitleAreaDialog;
 
    5 import org.eclipse.swt.SWT;
 
    6 import org.eclipse.swt.layout.GridData;
 
    7 import org.eclipse.swt.layout.GridLayout;
 
    8 import org.eclipse.swt.widgets.Composite;
 
    9 import org.eclipse.swt.widgets.Control;
 
   10 import org.eclipse.swt.widgets.Label;
 
   11 import org.eclipse.swt.widgets.Shell;
 
   12 import org.eclipse.swt.widgets.Text;
 
   16     private Text txtPassword;
 
   19     private String password;
 
   26     public void create() {
 
   28         setTitle(
"Credentials for Bitbucket");
 
   29         setMessage(
"Please Enter the bitbucket credentials", IMessageProvider.INFORMATION);
 
   33     protected Control createDialogArea(Composite parent) {
 
   34         Composite area = (Composite) super.createDialogArea(parent);
 
   35         Composite container = 
new Composite(area, SWT.NONE);
 
   36         container.setLayoutData(
new GridData(SWT.FILL, SWT.FILL, 
true, 
true));
 
   37         GridLayout layout = 
new GridLayout(2, 
false);
 
   38         container.setLayout(layout);
 
   40         createUser(container);
 
   41         createPassword(container);
 
   46     private void createUser(Composite container) {
 
   47         Label lbtFirstName = 
new Label(container, SWT.NONE);
 
   48         lbtFirstName.setText(
"Username:");
 
   50         GridData dataUser = 
new GridData();
 
   51         dataUser.grabExcessHorizontalSpace = 
true;
 
   52         dataUser.horizontalAlignment = GridData.FILL;
 
   54         txtUser = 
new Text(container, SWT.BORDER);
 
   55         txtUser.setLayoutData(dataUser);
 
   58     private void createPassword(Composite container) {
 
   59         Label lbtLastName = 
new Label(container, SWT.NONE);
 
   60         lbtLastName.setText(
"Password");
 
   62         GridData dataPassword = 
new GridData();
 
   63         dataPassword.grabExcessHorizontalSpace = 
true;
 
   64         dataPassword.horizontalAlignment = GridData.FILL;
 
   66         txtPassword = 
new Text(container, SWT.BORDER | SWT.PASSWORD);
 
   67         txtPassword.setLayoutData(dataPassword);
 
   73     protected boolean isResizable() {
 
   79     private void saveInput() {
 
   80         user = txtUser.getText();
 
   81         password = txtPassword.getText();
 
   86     protected void okPressed() {
 
   92     protected void cancelPressed() {
 
   95         super.cancelPressed();
 
   98     public String getUser() {
 
  102     public String getPassword() {