treeViewer.addSelectionChangedListener(this);
treeViewer.setInput(forms);
treeSelectionChangedListener = new TreeSelectionChangedListener();
treeViewer.addSelectionChangedListener(treeSelectionChangedListener);
IPostSelectionProvider selectionProvider = (IPostSelectionProvider) editor
.getSelectionProvider();
editorSelectionChangedListener = new EditorSelectionChangedListener(
treeViewer);
selectionProvider.addPostSelectionChangedListener(editorSelectionChangedListener);
ISelection selection = selectionProvider.getSelection();
selectInOutline(selection);
registerToolbarActions();
}