fDeclarationsGroup.fillContextMenu(menu);  if (fEditor == null) { fImplementorsGroup.fillContextMenu(menu); fReadAccessGroup.fillContextMenu(menu); fWriteAccessGroup.fillContextMenu(menu); addAction(menu, IContextMenuConstants.GROUP_SEARCH, fOccurrencesInFileAction); }
	public void fillContextMenu(IMenuManager menu) {		super.fillContextMenu(menu);				if(PreferenceConstants.getPreferenceStore().getBoolean(WorkInProgressPreferencePage.PREF_SEARCH_MENU)) {			fReferencesGroup.fillContextMenu(menu);		} else {			IMenuManager target= menu;			IMenuManager searchSubMenu= null;			if (fEditor != null) {				String groupName= SearchMessages.getString("group.search"); //$NON-NLS-1$				searchSubMenu= new MenuManager(groupName, ITextEditorActionConstants.GROUP_FIND);				searchSubMenu.add(new GroupMarker(ITextEditorActionConstants.GROUP_FIND));				target= searchSubMenu;			}						fReferencesGroup.fillContextMenu(target);			fDeclarationsGroup.fillContextMenu(target);			fImplementorsGroup.fillContextMenu(target);			fReadAccessGroup.fillContextMenu(target);			fWriteAccessGroup.fillContextMenu(target);						if (searchSubMenu != null) {				searchSubMenu.add(new Separator());				addAction(target, fOccurrencesInFileAction);			} else {				addAction(target, IContextMenuConstants.GROUP_SEARCH, fOccurrencesInFileAction);			}						// no other way to find out if we have added items.			if (searchSubMenu != null && searchSubMenu.getItems().length > 2) {						menu.appendToGroup(ITextEditorActionConstants.GROUP_FIND, searchSubMenu);			}		}	}	