Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.ColorSelector


        {
            final int index = i;

            attributeTypeLabels[i] = BaseWidgetUtils.createLabel( colorsAndFontsComposite, ATTRIBUTE_TYPES[i], 1 );
            attributeTypeLabels[i].setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
            attributeColorSelectors[i] = new ColorSelector( colorsAndFontsComposite );
            attributeBoldButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, "Bold", 1 );
            attributeItalicButtons[i] = BaseWidgetUtils.createCheckbox( colorsAndFontsComposite, "Italic", 1 );

            FontData[] fontDatas = PreferenceConverter.getFontDataArray( BrowserUIPlugin.getDefault()
                .getPreferenceStore(), ATTRIBUTE_FONT_CONSTANTS[i] );
View Full Code Here


        Composite stylesComposite = BaseWidgetUtils.createColumnContainer( editorComposite, 1, 1 );
        stylesComposite.setLayoutData( new GridData( GridData.FILL_BOTH ) );
        Composite colorComposite = BaseWidgetUtils.createColumnContainer( stylesComposite, 2, 1 );
        BaseWidgetUtils.createLabel( colorComposite, "Color:", 1 );
        colorSelector = new ColorSelector( colorComposite );
        boldCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Bold", 1 );
        italicCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Italic", 1 );
        strikethroughCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Strikethrough", 1 );
        underlineCheckBox = BaseWidgetUtils.createCheckbox( stylesComposite, "Underline", 1 );
View Full Code Here

        fForegroundLabel = createLabel(editControls,
                SSEUIMessages.Foreground_UI_);
        ((GridData) fForegroundLabel.getLayoutData()).verticalAlignment = SWT.CENTER;
        fForegroundLabel.setEnabled(false);

        fForegroundColorEditor = new ColorSelector(editControls);
        Button fForegroundColor = fForegroundColorEditor.getButton();
        GridData gd = new GridData(SWT.BEGINNING, SWT.FILL, false, false);
        fForegroundColor.setLayoutData(gd);
        fForegroundColorEditor.setEnabled(false);

        fBackgroundLabel = createLabel(editControls,
                SSEUIMessages.Background_UI_);
        ((GridData) fBackgroundLabel.getLayoutData()).verticalAlignment = SWT.CENTER;
        fBackgroundLabel.setEnabled(false);

        fBackgroundColorEditor = new ColorSelector(editControls);
        Button fBackgroundColor = fBackgroundColorEditor.getButton();
        gd = new GridData(SWT.BEGINNING, SWT.FILL, false, false);
        fBackgroundColor.setLayoutData(gd);
        fBackgroundColorEditor.setEnabled(false);
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.ColorSelector

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.