|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides client access to the search result view.
Each element in the view is a ISearchResultViewEntry
,
which groups markers based on the groupByKey
provided
by the client each time when adding a match. If every match should
show up in the search result view then the match itself can be used
as key.
The search result view has id "org.eclipse.search.SearchResultView"
.
This interface is not intended to be implemented by clients.
Field Summary |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Method Summary | |
void |
addMatch(String description,
Object groupByKey,
IResource resource,
IMarker marker)
Informs the view that a match has been found. |
ILabelProvider |
getLabelProvider()
Returns the label provider of a search result view. |
ISelection |
getSelection()
Returns the current selection of the search result view |
void |
searchFinished()
Informs the view that the search has finished. |
void |
searchStarted(IActionGroupFactory groupFactory,
String singularLabel,
String pluralLabelPattern,
ImageDescriptor imageDescriptor,
String pageId,
ILabelProvider labelProvider,
IAction gotoAction,
IGroupByKeyComputer groupByKeyComputer,
IRunnableWithProgress operation)
Informs the view that a search has started. |
void |
searchStarted(String pageId,
String label,
ImageDescriptor imageDescriptor,
IContextMenuContributor contributor,
ILabelProvider labelProvider,
IAction gotoAction,
IGroupByKeyComputer groupByKeyComputer,
IRunnableWithProgress operation)
Deprecated. As of build > 20011107, replaced by the new version with additonal parameter |
void |
searchStarted(String pageId,
String singularLabel,
String pluralLabelPattern,
ImageDescriptor imageDescriptor,
IContextMenuContributor contributor,
ILabelProvider labelProvider,
IAction gotoAction,
IGroupByKeyComputer groupByKeyComputer,
IRunnableWithProgress operation)
Deprecated. As of build > 20020514, replaced by the new version which provides an action group factory |
Methods inherited from interface org.eclipse.ui.IViewPart |
getViewSite, init, init, saveState |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Method Detail |
public void searchStarted(IActionGroupFactory groupFactory, String singularLabel, String pluralLabelPattern, ImageDescriptor imageDescriptor, String pageId, ILabelProvider labelProvider, IAction gotoAction, IGroupByKeyComputer groupByKeyComputer, IRunnableWithProgress operation)
groupFactory
- the action group factory
or null
if no factory is provided.singularLabel
- the label to be used for this search occurrence
if there is one match
or null
if the pluralLabelPattern should be usedpluralLabelPattern
- the label pattern to be used for this search occurrence
if there are more than one matches or none.
This string may contain {0} which will be replace by the match countimageDescriptor
- the image descriptor to be used for this search occurrence,
or null
if this search should not have an imagepageId
- the id of the search page which started the searchlabelProvider
- the label provider used by this search result view
or null
if the default provider should be used.
The default label provider shows the resource name and the corresponding image.gotoAction
- the action used by the view to go to a markergroupByKeyComputer
- the computer used by the view to compute the key for a markeroperation
- the runnable used by the view to repeat the searchIActionGroupFactory
public ISelection getSelection()
ISelectionProvider.getSelection()
public void searchStarted(String pageId, String label, ImageDescriptor imageDescriptor, IContextMenuContributor contributor, ILabelProvider labelProvider, IAction gotoAction, IGroupByKeyComputer groupByKeyComputer, IRunnableWithProgress operation)
pageId
- the id of the search page which started the searchlabel
- the label to be used for this search occurrenceimageDescriptor
- the image descriptor to be used for this search occurrence,
or null
if this search should not have an imagecontributor
- the context menu contributor
or null
if no context menu is contributedlabelProvider
- the label provider used by this search result view
or null
if the default provider should be used.
The default label provider shows the resource name and the corresponding image.gotoAction
- the action used by the view to go to a markergroupByKeyComputer
- the computer used by the view to compute the key for a markeroperation
- the runnable used by the view to repeat the searchpublic void searchStarted(String pageId, String singularLabel, String pluralLabelPattern, ImageDescriptor imageDescriptor, IContextMenuContributor contributor, ILabelProvider labelProvider, IAction gotoAction, IGroupByKeyComputer groupByKeyComputer, IRunnableWithProgress operation)
pageId
- the id of the search page which started the searchsingularLabel
- the label to be used for this search occurrence
if there is one match
or null
if the pluralLabelPattern should be usedpluralLabelPattern
- the label pattern to be used for this search occurrence
if there are more than one matches or none.
This string may contain {0} which will be replace by the match countimageDescriptor
- the image descriptor to be used for this search occurrence,
or null
if this search should not have an imagecontributor
- the context menu contributor
or null
if no context menu is contributedlabelProvider
- the label provider used by this search result view
or null
if the default provider should be used.
The default label provider shows the resource name and the corresponding image.gotoAction
- the action used by the view to go to a markergroupByKeyComputer
- the computer used by the view to compute the key for a markeroperation
- the runnable used by the view to repeat the searchpublic void searchFinished()
public void addMatch(String description, Object groupByKey, IResource resource, IMarker marker)
Note: It is the clients responsibility to create the marker for this match.
description
- the text description of the matchgroupByKey
- the Object
by which this match is groupedmarker
- the marker for this matchresource
- the marker's resource passed for optimizationpublic ILabelProvider getLabelProvider()
null
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |