Ejemplo n.º 1
0
  @Override
  protected Control createUI(Composite parent) {
    Composite composite = UIUtil.createGridComposite(parent, 2);
    composite.setLayoutData(UIUtil.createGridData());

    new Label(composite, SWT.NONE)
        .setText(Messages.getString("BuddiesPreferencePage_0")); // $NON-NLS-1$
    connectorDescription = new Text(composite, SWT.BORDER);
    connectorDescription.setLayoutData(UIUtil.createGridData(true, false));

    new Label(composite, SWT.NONE)
        .setText(Messages.getString("BuddiesPreferencePage_1")); // $NON-NLS-1$
    userID = new Text(composite, SWT.BORDER);
    userID.setLayoutData(new GridData(100, SWT.DEFAULT));

    new Label(composite, SWT.NONE)
        .setText(Messages.getString("BuddiesPreferencePage_2")); // $NON-NLS-1$
    password = new Text(composite, SWT.BORDER | SWT.PASSWORD);
    password.setLayoutData(new GridData(100, SWT.DEFAULT));

    new Label(composite, SWT.NONE);
    autoConnect = new Button(composite, SWT.CHECK);
    autoConnect.setText(Messages.getString("BuddiesPreferencePage_3")); // $NON-NLS-1$

    initValues();
    return composite;
  }
Ejemplo n.º 2
0
 public ReconnectAction() {
   super(
       Messages.getString("ReconnectAction_0"),
       Messages.getString("ReconnectAction_1")); // $NON-NLS-1$ //$NON-NLS-2$
 }