Package org.erlide.ui.prefs.plugin.internal

Examples of org.erlide.ui.prefs.plugin.internal.ScrolledPageContent


    private final List<Button> buttons = new ArrayList<Button>();
    private final List<Button> autoNLButtons = new ArrayList<Button>();

    @Override
    protected Control createContents(final Composite parent) {
        final ScrolledPageContent scrolled = new ScrolledPageContent(parent, SWT.H_SCROLL
                | SWT.V_SCROLL);
        scrolled.setExpandHorizontal(true);
        scrolled.setExpandVertical(true);

        final Composite control = new Composite(scrolled, SWT.NONE);
        final GridLayout layout = new GridLayout();
        layout.marginWidth = 0;
        layout.marginHeight = 0;
        control.setLayout(layout);

        Composite composite;

        composite = createSubsection(control,
                ErlEditorMessages.SmartTypingPrefs_AutomaticallyClose);
        addAutoclosingSection(composite);

        // composite = createSubsection(control,"Automove");
        // addAutopositionSection(composite);

        // composite = createSubsection(control, "Tabs");
        // addTabSection(composite);

        composite = createSubsection(control,
                ErlEditorMessages.SmartTypingPrefs_WhenPasting);
        addPasteSection(composite);

        // composite = createSubsection(control, "strings");
        // addStringsSection(composite);

        composite = createSubsection(control,
                ErlEditorMessages.SmartTypingPrefs_autoNewLine);
        addAutoNLSection(composite);

        scrolled.setContent(control);
        final Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        scrolled.setMinSize(size.x, size.y);

        setToPreferences();

        return scrolled;
    }
View Full Code Here

TOP

Related Classes of org.erlide.ui.prefs.plugin.internal.ScrolledPageContent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.