/* Create Viewer */
tableViewer = fNewsTableControl.createViewer(container);
/* Clear any quicksearch when ESC is hit from the Tree */
tableViewer.getControl().addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if (e.keyCode == SWT.ESC)
fFilterBar.clearQuickSearch();
}
});
/* Separate from Browser-Viewer */
fTableBrowserSep = new Label(container, SWT.SEPARATOR | SWT.HORIZONTAL);
fTableBrowserSep.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
((GridData) fTableBrowserSep.getLayoutData()).exclude = !fInitialLayoutVertical;
}
/* Browser-Viewer to display news */
NewsBrowserViewer browserViewer;
{
fBrowserViewerControlContainer = new Composite(fSashForm, SWT.None);
fBrowserViewerControlContainer.setLayout(LayoutUtils.createGridLayout(1, 0, 0, 0, 5, false));
fBrowserViewerControlContainer.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));
/* Browser Bar for Navigation */
fBrowserBar = new BrowserBar(this, fBrowserViewerControlContainer);
/* Separate to Browser */
fBrowserSep = new Label(fBrowserViewerControlContainer, SWT.SEPARATOR | SWT.HORIZONTAL);
fBrowserSep.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
((GridData) fBrowserSep.getLayoutData()).exclude = fInitialBrowserMaximized && !fBrowserBar.isVisible();
fBrowserSep.setVisible(fBrowserBar.isVisible() || (fSashForm.getOrientation() & SWT.VERTICAL) != 0);
fNewsBrowserControl = new NewsBrowserControl();
fNewsBrowserControl.init(fEditorSite);
fNewsBrowserControl.onInputChanged(fInput);
/* Create Viewer */
browserViewer = fNewsBrowserControl.createViewer(fBrowserViewerControlContainer);
/* Clear any quicksearch when ESC is hit from the Tree */
browserViewer.getControl().addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if (e.keyCode == SWT.ESC)
fFilterBar.clearQuickSearch();
}