// ensure that the tree has a white background
tree.setBackground(getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
tree.setLayoutData(new GridData(GridData.FILL_BOTH));
// add a focus listener to the tree that updates the active editors
// global actions
tree.addFocusListener(new FocusListener() {
// javadoc inherited
public void focusGained(FocusEvent event) {
setupGlobalActions();
}