protected Control createContents()

in org.apache.ivyde.eclipse/src/java/org/apache/ivyde/internal/eclipse/ui/preferences/IvyPreferencePage.java [85:165]


    protected Control createContents(Composite parent) {
        Composite composite = new Composite(parent, SWT.NONE);
        composite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
        composite.setLayout(new GridLayout());

        // CheckStyle:MagicNumber| OFF

        Label horizontalLine = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);
        horizontalLine.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));

        offlineButton = new Button(composite, SWT.CHECK);
        offlineButton.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
        offlineButton.setText("Offline (use only the caches)");

        openIvyConsoleOnStartupButton = new Button(composite, SWT.CHECK);
        openIvyConsoleOnStartupButton.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
                false));
        openIvyConsoleOnStartupButton.setText("Open the Ivy console on startup");

        Group startupGroup = new Group(composite, SWT.NONE);
        startupGroup.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
        startupGroup.setLayout(new GridLayout());
        startupGroup.setText("On Eclipse startup");

        doNothingOnStartupButton = new Button(startupGroup, SWT.RADIO);
        doNothingOnStartupButton.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
                false));
        doNothingOnStartupButton.setText("Do nothing");

        refreshOnStartupButton = new Button(startupGroup, SWT.RADIO);
        refreshOnStartupButton
                .setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
        refreshOnStartupButton.setText("Trigger refresh");

        resolveOnStartupButton = new Button(startupGroup, SWT.RADIO);
        resolveOnStartupButton
                .setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
        resolveOnStartupButton.setText("Trigger resolve");

        Group fileChangeGroup = new Group(composite, SWT.NONE);
        fileChangeGroup.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
        fileChangeGroup.setLayout(new GridLayout());
        fileChangeGroup.setText("On Ivy File Change");

        doNothingOnChangeButton = new Button(fileChangeGroup, SWT.RADIO);
        doNothingOnChangeButton.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true,
                false));
        doNothingOnChangeButton.setText("Do nothing");

        resolveOnChangeButton = new Button(fileChangeGroup, SWT.RADIO);
        resolveOnChangeButton
                .setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false));
        resolveOnChangeButton.setText("Trigger resolve");

        Group editorGroup = new Group(composite, SWT.NONE);
        editorGroup.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
        editorGroup.setLayout(new GridLayout(2, false));
        editorGroup.setText("Editor information");

        Label label = new Label(editorGroup, SWT.NONE);
        label.setText("Organisation:");
        organizationText = new Text(editorGroup, SWT.SINGLE | SWT.BORDER);
        organizationText
                .setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false));

        label = new Label(editorGroup, SWT.NONE);
        label.setText("Organisation URL:");
        organizationUrlText = new Text(editorGroup, SWT.SINGLE | SWT.BORDER);
        organizationUrlText.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true,
                false));

        errorPopupButton = new Button(composite, SWT.CHECK);
        errorPopupButton.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false, 3, 1));
        errorPopupButton.setText("Open a popup on each failed resolve");

        // CheckStyle:MagicNumber| ON

        initPreferences();

        return composite;
    }