public void createControl( Composite parent ) {
pagebook = new PageBook(parent, SWT.NONE);
Control outline = getViewer().createControl(pagebook);
getViewer().setEditDomain(editor.getEditDomain());
getViewer().setEditPartFactory(new TreePartFactory());
// getViewer().setKeyHandler(editor.getCommonKeyHandler());
ContextMenuProvider cmProvider = new PageContextMenuProvider(getViewer(), editor
.getActionRegistry());
getViewer().setContextMenu(cmProvider);