/**
  * @param anEvent An event indicating the current selection of the {@link CommonViewer}
  * @see
  *     org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
  */
 public void selectionChanged(SelectionChangedEvent anEvent) {
   if (anEvent.getSelection() instanceof IStructuredSelection) {
     IStructuredSelection structuredSelection = (IStructuredSelection) anEvent.getSelection();
     actionService.setContext(new ActionContext(structuredSelection));
     actionService.fillActionBars(commonNavigator.getViewSite().getActionBars());
   }
 }
 /**
  * Fills aMenuManager with menu contributions from the {@link NavigatorActionService}.
  *
  * @param aMenuManager A popup menu
  * @see NavigatorActionService#fillContextMenu(IMenuManager)
  */
 protected void fillContextMenu(IMenuManager aMenuManager) {
   ISelection selection = commonNavigator.getCommonViewer().getSelection();
   actionService.setContext(new ActionContext(selection));
   actionService.fillContextMenu(aMenuManager);
 }