label = new Label(repositoryRootGroup, SWT.NONE); label.setText(Policy.bind("SVNRepositoryPropertiesPage.repositoryUrl")); repositoryUrlText = new Text(repositoryRootGroup, SWT.SINGLE); repositoryUrlText.setText( ""); repositoryUrlText.setEditable(false); data = new GridData(GridData.FILL_HORIZONTAL); data.grabExcessHorizontalSpace = true; data.horizontalSpan = 2; repositoryUrlText.setLayoutData(data);
	protected Control createContents(Composite parent) {		initialize();                GridLayout layout;        Label label;        Text text;        GridData data;                Composite composite = new Composite(parent, SWT.NONE);        composite.setLayoutData(new GridData(GridData.FILL_BOTH));        layout = new GridLayout();		layout.numColumns = 1;		composite.setLayout(layout);                Listener labelListener = new Listener() {            public void handleEvent(Event event) {                updateWidgetEnablements();            }        };                // group for label		Composite labelGroup = new Composite(composite, SWT.NONE);		layout = new GridLayout();		layout.numColumns = 2;		labelGroup.setLayout(layout);		        // use url as label		useUrlLabelButton = new Button(labelGroup, SWT.RADIO);		useUrlLabelButton.setText(Policy.bind("SVNRepositoryPropertiesPage.useRepositoryUrlAsLabel")); //$NON-NLS-1$        useUrlLabelButton.addListener(SWT.Selection,labelListener);		data = new GridData();		data.horizontalSpan = 2;		useUrlLabelButton.setLayoutData(data);		        // use custom label		useCustomLabelButton = new Button(labelGroup, SWT.RADIO);		useCustomLabelButton.setText(Policy.bind("SVNRepositoryPropertiesPage.useCustomLabel")); //$NON-NLS-1$        useCustomLabelButton.addListener(SWT.Selection,labelListener);		data = new GridData();		useCustomLabelButton.setLayoutData(data);		customLabelText = new Text(labelGroup, SWT.SINGLE | SWT.BORDER);        customLabelText.addListener(SWT.Modify, labelListener);		data = new GridData();        data.widthHint = 200;        customLabelText.setLayoutData(data);                // empty label to separate        label = new Label(composite, SWT.NONE);                // group for login and password        Composite userPasswordGroup = new Composite(composite, SWT.NONE);        userPasswordGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));        layout = new GridLayout();        layout.numColumns = 2;        userPasswordGroup.setLayout(layout);                // login        label = new Label(userPasswordGroup, SWT.NONE);        label.setText(Policy.bind("SVNRepositoryPropertiesPage.login")); //$NON-NLS-1$        loginText = new Text(userPasswordGroup, SWT.SINGLE | SWT.BORDER);        data = new GridData(GridData.FILL_HORIZONTAL);        data.grabExcessHorizontalSpace = true;        loginText.setLayoutData(data);        // password        label = new Label(userPasswordGroup, SWT.NONE);        label.setText(Policy.bind("SVNRepositoryPropertiesPage.password")); //$NON-NLS-1$        passwordText = new Text(userPasswordGroup, SWT.SINGLE | SWT.BORDER| SWT.PASSWORD);        data = new GridData(GridData.FILL_HORIZONTAL);        data.grabExcessHorizontalSpace = true;        passwordText.setLayoutData(data);                passwordText.addListener(SWT.Modify, new Listener() {            public void handleEvent(Event event) {                passwordChanged = !passwordText.getText().equals(FAKE_PASSWORD);            }        });                // empty label to separate        label = new Label(composite, SWT.NONE);        // group for repository root        Composite repositoryRootGroup = new Composite(composite, SWT.NONE);        repositoryRootGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));        layout = new GridLayout();        layout.numColumns = 3;        repositoryRootGroup.setLayout(layout);                // url of the repository root         label = new Label(repositoryRootGroup, SWT.NONE);        label.setText(Policy.bind("SVNRepositoryPropertiesPage.repositoryRootUrl")); //$NON-NLS-1$        repositoryRootText = new Text(repositoryRootGroup, SWT.SINGLE | SWT.BORDER);        repositoryRootText.setEditable(false);        data = new GridData(GridData.FILL_HORIZONTAL);        data.grabExcessHorizontalSpace = true;        repositoryRootText.setLayoutData(data);                Button button = new Button(repositoryRootGroup, SWT.NONE);        button.setText(Policy.bind("SVNRepositoryPropertiesPage.browseRootUrl")); //$NON-NLS-1$        button.addListener(SWT.Selection, new Listener() {            public void handleEvent(Event event) {                openChooseRootDialog();            }        });        // warning for repository root        Composite warningComposite = new Composite(composite, SWT.NONE);        layout = new GridLayout();        layout.numColumns = 2;        layout.marginHeight = 0;        layout.marginHeight = 0;        warningComposite.setLayout(layout);                Label warningLabel = new Label(warningComposite, SWT.NONE);        warningLabel.setImage(Dialog.getImage(Dialog.DLG_IMG_MESSAGE_WARNING));        Label warningText = new Label(warningComposite, SWT.WRAP);        warningText.setText(Policy.bind("SVNRepositoryPropertiesPage.rootUrlWarning")); //$NON-NLS-1$                initializeValues();		return composite;	}