public void createPartControl( Composite parent )
{
this.parent = parent;
initViewer();
IToolBarManager toolbar = getViewSite().getActionBars().getToolBarManager();
toolbar.add( new SortHierarchicalViewAction( PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
SortHierarchicalViewAction.SortType.alphabetical, Messages
.getString( "HierarchicalViewer.Sort_alphabetically" ) ) ); //$NON-NLS-1$
toolbar.add( new SortHierarchicalViewAction( PlatformUI.getWorkbench().getActiveWorkbenchWindow(),
SortHierarchicalViewAction.SortType.unalphabetical, Messages
.getString( "HierarchicalViewer.Sort_unalphabetically" ) ) ); //$NON-NLS-1$
toolbar.add( new LinkWithEditorHierarchyView( this ) );
}