setSelection(Collections.singletonList(((org.eclipse.swt.widgets.Tree)getControl()).getItems()[0])); ((Tree) getControl()).showSelection();
final TreeItem[] items = ((Tree) getControl()).getItems(); if(items!=null && items.length>0) { setSelection(Collections.singletonList(items[0])); ((Tree) getControl()).showSelection(); }
    protected void inputChanged(Object input, Object oldInput) {        super.inputChanged( input, oldInput);        this.currentLogEntry = (ILogEntry) input;                // showItem(((org.eclipse.swt.widgets.Tree)getControl()).getItems()[0]);        expandAll();        setSelection(Collections.singletonList(((org.eclipse.swt.widgets.Tree)getControl()).getItems()[0]));        ((Tree) getControl()).showSelection();    }