Package org.eclipse.search.ui
Interface ISearchResultPage
- All Superinterfaces:
- IPage,- IPageBookViewPage
- All Known Implementing Classes:
- AbstractTextSearchViewPage
Interface to be implemented by contributors to the extension point 
 
org.eclipse.search.searchResultViewPages.
 A ISearchResultPage is used to show the search results for a
 particular class of ISearchResult (as specified in the
 searchResultClass attribute of the extension point) in the search
 result view. Clients may implement this interface.
- Since:
- 3.0
- 
Method SummaryModifier and TypeMethodDescriptiongetID()Returns the id set viasetID.getLabel()Returns a user readable label for this search result page.Returns an object representing the current user interface state of the page.voidrestoreState(IMemento memento) Restores the page state.voidSaves the page state in a memento.voidSets the id for this page.voidsetInput(ISearchResult search, Object uiState) Sets the search result to be shown in this search results page.voidSets the search view this search results page is shown in.Methods inherited from interface org.eclipse.ui.part.IPagecreateControl, dispose, getControl, setActionBars, setFocusMethods inherited from interface org.eclipse.ui.part.IPageBookViewPagegetSite, init
- 
Method Details- 
getUIStateObject getUIState()Returns an object representing the current user interface state of the page. For example, the current selection in a viewer. The UI state will be later passed into thesetInput()method when the currently shownISearchResultis shown again.- Returns:
- an object representing the UI state of this page
 
- 
setInputSets the search result to be shown in this search results page. Implementers should restore UI state (e.g. selection) from the previously saveduiStateobject.- Parameters:
- search- the search result to be shown or- nullto clear the page.
- uiState- the previously saved UI state
- See Also:
 
- 
setViewPartSets the search view this search results page is shown in. This method will be called before the page is shown for the first time (i.e. before the page control is created).- Parameters:
- part- the parent search view
 
- 
restoreStateRestores the page state. Note that this applies only to state that is saved across sessions.- Parameters:
- memento- a memento to restore the page state from or- nullif no previous state was saved
- See Also:
 
- 
saveStateSaves the page state in a memento. Note that this applies to state that should persist across sessions.- Parameters:
- memento- a memento to receive the object state
- See Also:
 
- 
setIDSets the id for this page. This method will be called before any other initialization is done.- Parameters:
- id- the id for this page
 
- 
getIDString getID()Returns the id set viasetID.- Returns:
- the id of this page
 
- 
getLabelString getLabel()Returns a user readable label for this search result page. The label will be used to describe the contents for the page to the user (for example it will be displayed in the search view title bar). To take an example from file search, a label might read like this: 'test' - 896 matches in workspace.- Returns:
- the user readable label for this search result page
 
 
-