* {@inheritDoc}
*/
public void menuAboutToShow( IMenuManager menuManager )
{
// new
MenuManager newMenuManager = new MenuManager( Messages.getString( "BrowserViewActionGroup.New" ) ); //$NON-NLS-1$
newMenuManager.add( browserActionMap.get( newEntryAction ) );
newMenuManager.add( browserActionMap.get( newContextEntryAction ) );
newMenuManager.add( new Separator() );
newMenuManager.add( browserActionMap.get( newSearchAction ) );
newMenuManager.add( browserActionMap.get( newBookmarkAction ) );
newMenuManager.add( new Separator() );
newMenuManager.add( browserActionMap.get( newBatchOperationAction ) );
menuManager.add( newMenuManager );
menuManager.add( new Separator() );
// navigation
menuManager.add( browserActionMap.get( openEntryEditorAction ) );
MenuManager openWithEntryEditorMenuManager = new EntryEditorMenuManager( mainWidget.getViewer() );
menuManager.add( openWithEntryEditorMenuManager );
BrowserViewActionProxy leid = ( BrowserViewActionProxy ) browserActionMap.get( locateEntryInDitAction );
leid.setImageDescriptor( leid.getAction().getImageDescriptor() );
menuManager.add( leid );
menuManager.add( browserActionMap.get( gotoDnAction ) );
menuManager.add( browserActionMap.get( upAction ) );
menuManager.add( new Separator() );
// copy/paste/...
menuManager.add( browserActionMap.get( copyAction ) );
menuManager.add( browserActionMap.get( pasteAction ) );
menuManager.add( browserActionMap.get( deleteAction ) );
menuManager.add( browserActionMap.get( moveAction ) );
menuManager.add( browserActionMap.get( renameAction ) );
MenuManager advancedMenuManager = new MenuManager( Messages.getString( "BrowserViewActionGroup.Advanced" ) ); //$NON-NLS-1$
advancedMenuManager.add( browserActionMap.get( copyDnAction ) );
advancedMenuManager.add( browserActionMap.get( copyUrlAction ) );
advancedMenuManager.add( new Separator() );
advancedMenuManager.add( browserActionMap.get( copyEntryAsLdifDnOnlyAction ) );
advancedMenuManager.add( browserActionMap.get( copyEntryAsLdifReturningAttributesOnlyAction ) );
advancedMenuManager.add( browserActionMap.get( copyEntryAsLdifAction ) );
advancedMenuManager.add( browserActionMap.get( copyEntryAsLdifOperationalAction ) );
advancedMenuManager.add( new Separator() );
advancedMenuManager.add( browserActionMap.get( copyEntryAsCsvDnOnlyAction ) );
advancedMenuManager.add( browserActionMap.get( copyEntryAsCsvReturningAttributesOnlyAction ) );
advancedMenuManager.add( browserActionMap.get( copyEntryAsCsvAction ) );
advancedMenuManager.add( browserActionMap.get( copyEntryAsCsvOperationalAction ) );
advancedMenuManager.add( new Separator() );
menuManager.add( advancedMenuManager );
menuManager.add( new Separator() );
// filter, batch
menuManager.add( browserActionMap.get( filterChildrenAction ) );
if ( ( browserActionMap.get( unfilterChildrenAction ) ).isEnabled() )
{
menuManager.add( browserActionMap.get( unfilterChildrenAction ) );
}
menuManager.add( new Separator() );
// import/export
MenuManager importMenuManager = new MenuManager( Messages.getString( "BrowserViewActionGroup.Import" ) ); //$NON-NLS-1$
importMenuManager.add( browserActionMap.get( importLdifAction ) );
importMenuManager.add( browserActionMap.get( importDsmlAction ) );
importMenuManager.add( new Separator() );
menuManager.add( importMenuManager );
MenuManager exportMenuManager = new MenuManager( Messages.getString( "BrowserViewActionGroup.Export" ) ); //$NON-NLS-1$
exportMenuManager.add( browserActionMap.get( exportLdifAction ) );
exportMenuManager.add( browserActionMap.get( exportDsmlAction ) );
exportMenuManager.add( new Separator() );
exportMenuManager.add( browserActionMap.get( exportCsvAction ) );
exportMenuManager.add( browserActionMap.get( exportExcelAction ) );
exportMenuManager.add( browserActionMap.get( exportOdfAction ) );
menuManager.add( exportMenuManager );
menuManager.add( new Separator() );
// refresh
menuManager.add( browserActionMap.get( refreshAction ) );
MenuManager fetchMenuManager = new MenuManager( Messages.getString( "BrowserViewActionGroup.Fetch" ) ); //$NON-NLS-1$
if ( browserActionMap.get( fetchOperationalAttributesAction ).isEnabled() )
{
fetchMenuManager.add( browserActionMap.get( fetchOperationalAttributesAction ) );
}
if ( browserActionMap.get( fetchAliasesAction ).isEnabled() )
{
fetchMenuManager.add( browserActionMap.get( fetchAliasesAction ) );
}
if ( browserActionMap.get( fetchReferralsAction ).isEnabled() )
{
fetchMenuManager.add( browserActionMap.get( fetchReferralsAction ) );
}
if ( browserActionMap.get( fetchSubentriesAction ).isEnabled() )
{
fetchMenuManager.add( browserActionMap.get( fetchSubentriesAction ) );
}
menuManager.add( fetchMenuManager );
menuManager.add( new Separator() );
// additions