showLinksAction = new ShowLinksAction();
showDecoratedValuesAction = new ShowDecoratedValuesAction();
openSearchResultEditorPreferencePage = new OpenSearchResultEditorPreferencePage();
showQuickFilterAction = new ShowQuickFilterAction( searchResultEditor.getMainWidget().getQuickFilterWidget() );
openBestValueEditorActionProxy = new SearchResultEditorActionProxy( cursor, new OpenBestEditorAction( viewer,
cursor, valueEditorManager, this ) );
openDefaultValueEditorActionProxy = new SearchResultEditorActionProxy( cursor, new OpenDefaultEditorAction(
viewer, cursor, valueEditorManager, openBestValueEditorActionProxy, this ) );
IValueEditor[] valueEditors = searchResultEditor.getConfiguration().getValueEditorManager( viewer )
.getAllValueEditors();
openValueEditorActionProxies = new SearchResultEditorActionProxy[valueEditors.length];
for ( int i = 0; i < openValueEditorActionProxies.length; i++ )
{
openValueEditorActionProxies[i] = new SearchResultEditorActionProxy( cursor, new OpenEditorAction( viewer,
cursor, valueEditorManager, valueEditors[i], this ) );
}
openEntryValueEditorActionProxy = new SearchResultEditorActionProxy( cursor, new OpenEntryEditorAction( viewer,
cursor, valueEditorManager, valueEditorManager.getEntryValueEditor(), this ) );
openValueEditorPreferencesAction = new ValueEditorPreferencesAction();
searchResultEditorActionMap.put( copyTableAction, new SearchResultEditorActionProxy( cursor,
new CopyEntryAsCsvAction( CopyEntryAsCsvAction.MODE_TABLE ) ) );
searchResultEditorActionMap.put( refreshSearchAction, new SearchResultEditorActionProxy( cursor,
new RefreshAction() ) );
searchResultEditorActionMap.put( newValueAction, new SearchResultEditorActionProxy( cursor,
new NewValueAction() ) );
searchResultEditorActionMap.put( newSearchAction, new SearchResultEditorActionProxy( cursor,
new NewSearchAction() ) );
searchResultEditorActionMap.put( newBatchOperationAction, new SearchResultEditorActionProxy( cursor,
new NewBatchOperationAction() ) );
searchResultEditorActionMap.put( locateDnInDitAction, new SearchResultEditorActionProxy( cursor,
new LocateDnInDitAction() ) );
searchResultEditorActionMap.put( openSearchResultAction, new SearchResultEditorActionProxy( cursor,
new OpenSearchResultAction() ) );
searchResultEditorActionMap.put( showOcdAction, new SearchResultEditorActionProxy( cursor,
new OpenSchemaBrowserAction( OpenSchemaBrowserAction.MODE_OBJECTCLASS ) ) );
searchResultEditorActionMap.put( showAtdAction, new SearchResultEditorActionProxy( cursor,
new OpenSchemaBrowserAction( OpenSchemaBrowserAction.MODE_ATTRIBUTETYPE ) ) );
searchResultEditorActionMap.put( showEqualityMrdAction, new SearchResultEditorActionProxy( cursor,
new OpenSchemaBrowserAction( OpenSchemaBrowserAction.MODE_EQUALITYMATCHINGRULE ) ) );
searchResultEditorActionMap.put( showSubstringMrdAction, new SearchResultEditorActionProxy( cursor,
new OpenSchemaBrowserAction( OpenSchemaBrowserAction.MODE_SUBSTRINGMATCHINGRULE ) ) );
searchResultEditorActionMap.put( showOrderingMrdAction, new SearchResultEditorActionProxy( cursor,
new OpenSchemaBrowserAction( OpenSchemaBrowserAction.MODE_ORDERINGMATCHINGRULE ) ) );
searchResultEditorActionMap.put( showLsdAction, new SearchResultEditorActionProxy( cursor,
new OpenSchemaBrowserAction( OpenSchemaBrowserAction.MODE_SYNTAX ) ) );
searchResultEditorActionMap.put( pasteAction, new SearchResultEditorActionProxy( cursor,
new SearchResultEditorPasteAction() ) );
searchResultEditorActionMap.put( copyAction, new SearchResultEditorActionProxy( cursor, new CopyAction(
( BrowserActionProxy ) this.searchResultEditorActionMap.get( pasteAction ), valueEditorManager ) ) );
searchResultEditorActionMap.put( deleteAction, new SearchResultEditorActionProxy( cursor,
new SearchResultDeleteAction() ) );
searchResultEditorActionMap.put( copyDnAction, new SearchResultEditorActionProxy( cursor, new CopyDnAction() ) );
searchResultEditorActionMap
.put( copyUrlAction, new SearchResultEditorActionProxy( cursor, new CopyUrlAction() ) );
searchResultEditorActionMap.put( copyAttriuteDescriptionAction, new SearchResultEditorActionProxy( cursor,
new CopyAttributeDescriptionAction() ) );
searchResultEditorActionMap.put( copyDisplayValueAction, new SearchResultEditorActionProxy( cursor,
new CopyValueAction( CopyValueAction.Mode.DISPLAY, valueEditorManager ) ) );
searchResultEditorActionMap.put( copyValueUtf8Action, new SearchResultEditorActionProxy( cursor,
new CopyValueAction( CopyValueAction.Mode.UTF8, valueEditorManager ) ) );
searchResultEditorActionMap.put( copyValueBase64Action, new SearchResultEditorActionProxy( cursor,
new CopyValueAction( CopyValueAction.Mode.BASE64, valueEditorManager ) ) );
searchResultEditorActionMap.put( copyValueHexAction, new SearchResultEditorActionProxy( cursor,
new CopyValueAction( CopyValueAction.Mode.HEX, valueEditorManager ) ) );
searchResultEditorActionMap.put( copyValueAsLdifAction, new SearchResultEditorActionProxy( cursor,
new CopyValueAction( CopyValueAction.Mode.LDIF, valueEditorManager ) ) );
searchResultEditorActionMap.put( copySearchFilterAction, new SearchResultEditorActionProxy( cursor,
new CopySearchFilterAction( CopySearchFilterAction.MODE_EQUALS ) ) );
searchResultEditorActionMap.put( copyNotSearchFilterAction, new SearchResultEditorActionProxy( cursor,
new CopySearchFilterAction( CopySearchFilterAction.MODE_NOT ) ) );
searchResultEditorActionMap.put( copyAndSearchFilterAction, new SearchResultEditorActionProxy( cursor,
new CopySearchFilterAction( CopySearchFilterAction.MODE_AND ) ) );
searchResultEditorActionMap.put( copyOrSearchFilterAction, new SearchResultEditorActionProxy( cursor,
new CopySearchFilterAction( CopySearchFilterAction.MODE_OR ) ) );
searchResultEditorActionMap.put( propertyDialogAction, new SearchResultEditorActionProxy( cursor,
new PropertiesAction() ) );
}