@@ -0,0 +1,2980 @@
+package me.izstas.rfs.client.ui;%0A%0Aimport org.eclipse.jface.dialogs.Dialog;%0Aimport org.eclipse.jface.dialogs.IDialogConstants;%0Aimport org.eclipse.swt.SWT;%0Aimport org.eclipse.swt.graphics.Point;%0Aimport org.eclipse.swt.layout.GridData;%0Aimport org.eclipse.swt.layout.GridLayout;%0Aimport org.eclipse.swt.widgets.Button;%0Aimport org.eclipse.swt.widgets.Composite;%0Aimport org.eclipse.swt.widgets.Control;%0Aimport org.eclipse.swt.widgets.Group;%0Aimport org.eclipse.swt.widgets.Label;%0Aimport org.eclipse.swt.widgets.Shell;%0Aimport org.eclipse.swt.widgets.Text;%0A%0Apublic class ServerDialog extends Dialog %7B%0A    private static final int CHECK_ID = IDialogConstants.CLIENT_ID + 1;%0A    private Text urlText;%0A    private Text authUserText;%0A    private Text authPwdText;%0A%0A    public ServerDialog(Shell parentShell) %7B%0A        super(parentShell);%0A    %7D%0A%0A    @Override%0A    protected Control createDialogArea(Composite parent) %7B%0A        Composite container = (Composite) super.createDialogArea(parent);%0A        GridLayout gridLayout = (GridLayout) container.getLayout();%0A        gridLayout.numColumns = 2;%0A%0A        Label urlLabel = new Label(container, SWT.NONE);%0A        urlLabel.setText(%22URL:%22);%0A%0A        urlText = new Text(container, SWT.BORDER);%0A        urlText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));%0A%0A        Group authGroup = new Group(container, SWT.NONE);%0A        authGroup.setLayout(new GridLayout(2, false));%0A        GridData gd_authGroup = new GridData(SWT.LEFT, SWT.TOP, false, false, 2, 1);%0A        gd_authGroup.widthHint = 417;%0A        authGroup.setLayoutData(gd_authGroup);%0A        authGroup.setText(%22Authentication%22);%0A%0A        Button authAnonCheck = new Button(authGroup, SWT.CHECK);%0A        authAnonCheck.setSelection(true);%0A        authAnonCheck.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));%0A        authAnonCheck.setText(%22Anonymous authentication%22);%0A%0A        Label authUserLabel = new Label(authGroup, SWT.NONE);%0A        authUserLabel.setText(%22Username:%22);%0A%0A        authUserText = new Text(authGroup, SWT.BORDER);%0A        authUserText.setEnabled(false);%0A        authUserText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));%0A%0A        Label authPwdLabel = new Label(authGroup, SWT.NONE);%0A        authPwdLabel.setText(%22Password:%22);%0A%0A        authPwdText = new Text(authGroup, SWT.BORDER);%0A        authPwdText.setEnabled(false);%0A        authPwdText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));%0A%0A        Label statusLabel = new Label(container, SWT.NONE);%0A        statusLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));%0A%0A        return container;%0A    %7D%0A%0A    @Override%0A    protected void createButtonsForButtonBar(Composite parent) %7B%0A        createButton(parent, CHECK_ID, %22Check%22, false);%0A        createButton(parent, IDialogConstants.OK_ID, %22Browse%22, true);%0A    %7D%0A%0A    @Override%0A    protected Point getInitialSize() %7B%0A        return new Point(451, 254);%0A    %7D%0A%7D%0A

Add base template for JFace-based ServerDialog