Composite errorComposite = BaseWidgetUtils.createColumnContainer( errorGroup, 4, 1 );
for ( int i = 0; i < ERROR_TYPES.length; i++ )
{
errorTypeLabels[i] = BaseWidgetUtils.createLabel( errorComposite, ERROR_TYPES[i], 1 );
errorTypeLabels[i].setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
errorColorSelectors[i] = new ColorSelector( errorComposite );
errorBoldButtons[i] = BaseWidgetUtils.createCheckbox( errorComposite, "Bold", 1 );
errorItalicButtons[i] = BaseWidgetUtils.createCheckbox( errorComposite, "Italic", 1 );
FontData[] fontDatas = PreferenceConverter.getFontDataArray( BrowserCommonActivator.getDefault()
.getPreferenceStore(), ERROR_FONT_CONSTANTS[i] );
RGB rgb = PreferenceConverter.getColor( BrowserCommonActivator.getDefault().getPreferenceStore(),
ERROR_COLOR_CONSTANTS[i] );
setErrors( i, fontDatas, rgb );
}
// quick filter
BaseWidgetUtils.createSpacer( composite, 1 );
BaseWidgetUtils.createSpacer( composite, 1 );
Group otherGroup = BaseWidgetUtils.createGroup( composite, "Quick Filter Colors and Fonts", 1 );
otherGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
Composite otherComposite = BaseWidgetUtils.createColumnContainer( otherGroup, 4, 1 );
quickfilterTypeLabel = BaseWidgetUtils.createLabel( otherComposite, "Quick Filter", 1 );
quickfilterTypeLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
quickfilterForegroundColorSelector = new ColorSelector( otherComposite );
quickfilterBoldButton = BaseWidgetUtils.createCheckbox( otherComposite, "Bold", 1 );
quickfilterItalicButton = BaseWidgetUtils.createCheckbox( otherComposite, "Italic", 1 );
Label quickfilterBgLabel = BaseWidgetUtils.createLabel( otherComposite, "Quick Filter Background", 1 );
quickfilterBgLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
quickfilterBackgroundColorSelector = new ColorSelector( otherComposite );
FontData[] qfFontDatas = PreferenceConverter.getFontDataArray( BrowserCommonActivator.getDefault()
.getPreferenceStore(), BrowserCommonConstants.PREFERENCE_QUICKFILTER_FONT );
RGB qfBgRgb = PreferenceConverter.getColor( BrowserCommonActivator.getDefault().getPreferenceStore(),
BrowserCommonConstants.PREFERENCE_QUICKFILTER_BACKGROUND_COLOR );
RGB qfFgRgb = PreferenceConverter.getColor( BrowserCommonActivator.getDefault().getPreferenceStore(),
BrowserCommonConstants.PREFERENCE_QUICKFILTER_FOREGROUND_COLOR );
setQuickfilter( qfFontDatas, qfFgRgb, qfBgRgb );
// attribute
BaseWidgetUtils.createSpacer( composite, 1 );
BaseWidgetUtils.createSpacer( composite, 1 );
Group colorsAndFontsGroup = BaseWidgetUtils.createGroup( composite, "Attribute Colors and Fonts", 1 );
colorsAndFontsGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
Composite colorsAndFontsComposite = BaseWidgetUtils.createColumnContainer( colorsAndFontsGroup, 4, 1 );
for ( int i = 0; i < ATTRIBUTE_TYPES.length; 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( BrowserCommonActivator.getDefault()
.getPreferenceStore(), ATTRIBUTE_FONT_CONSTANTS[i] );