public SearchBar(Composite parent, ProjectionViewer viewer, Colors colors) {
super(parent, SWT.NONE);
setLayout(new RowLayout(SWT.HORIZONTAL));
configureViewer(viewer);
this.textControl = viewer.getTextWidget();
this.highlighter = new MatchHighlighter(viewer, colors.get(Colors.HIGHLIGHT_SEARCH_MATCH), ANNOTATION_MATCH, true);
this.noResultBackground = colors.get(Colors.NO_SEARCH_RESULT_TEXT_BACKGROUND);
searchText = createSearchText();
searchTextBackground = searchText.getBackground();
buttons = new NavigationButtons(this, highlighter, this);
pack();