public void createPartControl( Composite parent ) {
bookmarksTree = new TreeViewer(parent);
bookmarksProvider = new BookmarksContentProvider();
bookmarksTree.setContentProvider(bookmarksProvider);
getSite().getWorkbenchWindow().getPartService().addPartListener(bookmarksProvider);
labelProvider = new BookmarksLabelProvider();
bookmarksTree.setLabelProvider(labelProvider);
bookmarksTree.setSorter(new ViewerSorter());
bookmarksTree.setInput(bookmarksProvider);
bookmarksTree.setAutoExpandLevel(2);
bookmarksTree.addDoubleClickListener(new BookmarkAction());