menuManager.add( new Separator() );
// navigation
menuManager.add( searchResultEditorActionMap.get( locateDnInDitAction ) );
menuManager.add( searchResultEditorActionMap.get( openSearchResultAction ) );
MenuManager schemaMenuManager = new MenuManager( Messages
.getString( "SearchResultEditorActionGroup.OpenSchemaBrowser" ) ); //$NON-NLS-1$
schemaMenuManager.add( searchResultEditorActionMap.get( showOcdAction ) );
schemaMenuManager.add( searchResultEditorActionMap.get( showAtdAction ) );
schemaMenuManager.add( searchResultEditorActionMap.get( showEqualityMrdAction ) );
schemaMenuManager.add( searchResultEditorActionMap.get( showSubstringMrdAction ) );
schemaMenuManager.add( searchResultEditorActionMap.get( showOrderingMrdAction ) );
schemaMenuManager.add( searchResultEditorActionMap.get( showLsdAction ) );
menuManager.add( schemaMenuManager );
MenuManager showInSubMenu = new MenuManager( Messages.getString( "SearchResultEditorActionGroup.ShowIn" ) ); //$NON-NLS-1$
showInSubMenu.add( ContributionItemFactory.VIEWS_SHOW_IN.create( PlatformUI.getWorkbench()
.getActiveWorkbenchWindow() ) );
menuManager.add( showInSubMenu );
menuManager.add( new Separator() );
// copy, paste, delete
menuManager.add( searchResultEditorActionMap.get( copyAction ) );
menuManager.add( searchResultEditorActionMap.get( pasteAction ) );
menuManager.add( searchResultEditorActionMap.get( deleteAction ) );
MenuManager advancedMenuManager = new MenuManager( Messages
.getString( "SearchResultEditorActionGroup.Advanced" ) ); //$NON-NLS-1$
advancedMenuManager.add( searchResultEditorActionMap.get( copyDnAction ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyUrlAction ) );
advancedMenuManager.add( new Separator() );
advancedMenuManager.add( searchResultEditorActionMap.get( copyAttriuteDescriptionAction ) );
advancedMenuManager.add( new Separator() );
advancedMenuManager.add( searchResultEditorActionMap.get( copyDisplayValueAction ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyValueUtf8Action ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyValueBase64Action ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyValueHexAction ) );
advancedMenuManager.add( new Separator() );
advancedMenuManager.add( searchResultEditorActionMap.get( copyValueAsLdifAction ) );
advancedMenuManager.add( new Separator() );
advancedMenuManager.add( searchResultEditorActionMap.get( copySearchFilterAction ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyNotSearchFilterAction ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyAndSearchFilterAction ) );
advancedMenuManager.add( searchResultEditorActionMap.get( copyOrSearchFilterAction ) );
menuManager.add( advancedMenuManager );
menuManager.add( new Separator() );
// edit
menuManager.add( openDefaultValueEditorActionProxy );
MenuManager editorMenuManager = new MenuManager( Messages.getString( "SearchResultEditorActionGroup.EditValue" ) ); //$NON-NLS-1$
if ( openBestValueEditorActionProxy.isEnabled() )
{
editorMenuManager.add( openBestValueEditorActionProxy );
editorMenuManager.add( new Separator() );
}
for ( int i = 0; i < openValueEditorActionProxies.length; i++ )
{
if ( openValueEditorActionProxies[i].isEnabled()
&& ( ( OpenEditorAction ) openValueEditorActionProxies[i].getAction() ).getValueEditor().getClass() != ( ( OpenBestEditorAction ) openBestValueEditorActionProxy
.getAction() ).getBestValueEditor().getClass() )
{
editorMenuManager.add( openValueEditorActionProxies[i] );
}
}
editorMenuManager.add( new Separator() );
editorMenuManager.add( openValueEditorPreferencesAction );
menuManager.add( editorMenuManager );
menuManager.add( openEntryValueEditorActionProxy );
menuManager.add( new Separator() );
// refresh