org.eclipse.mylar.internal.tasks.ui.search
Class RepositorySearchResultView
java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.search.ui.text.AbstractTextSearchViewPage
org.eclipse.mylar.internal.tasks.ui.search.RepositorySearchResultView
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.search.ui.ISearchResultPage, org.eclipse.ui.part.IPage, org.eclipse.ui.part.IPageBookViewPage
public class RepositorySearchResultView
- extends org.eclipse.search.ui.text.AbstractTextSearchViewPage
- implements org.eclipse.core.runtime.IAdaptable
Displays the results of a Repository search.
- Author:
- Rob Elves, Mik Kersten
- See Also:
AbstractTextSearchViewPage
Fields inherited from class org.eclipse.search.ui.text.AbstractTextSearchViewPage |
EMPTY_MATCH_ARRAY, FLAG_LAYOUT_FLAT, FLAG_LAYOUT_TREE |
Method Summary |
protected void |
clear()
|
protected void |
configureTableViewer(org.eclipse.jface.viewers.TableViewer viewer)
|
protected void |
configureTreeViewer(org.eclipse.jface.viewers.TreeViewer viewer)
|
protected void |
elementsChanged(java.lang.Object[] objects)
|
protected void |
fillContextMenu(org.eclipse.jface.action.IMenuManager mgr)
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
private java.lang.Object |
getAdapterDelegate(java.lang.Class<?> adapter)
|
org.eclipse.jface.viewers.StructuredViewer |
getViewer()
|
void |
setSortOrder(int sortOrder)
Sets the new sorting category, and reorders all of the tasks. |
protected void |
showMatch(org.eclipse.search.ui.text.Match match,
int currentOffset,
int currentLength,
boolean activate)
|
Methods inherited from class org.eclipse.search.ui.text.AbstractTextSearchViewPage |
canRemoveMatchesWith, createControl, createTableViewer, createTreeViewer, dispose, fillToolbar, getControl, getCurrentMatch, getCurrentMatchLocation, getDisplayedMatchCount, getDisplayedMatches, getID, getInput, getLabel, getLayout, getSettings, getUIState, getViewPart, gotoNextMatch, gotoPreviousMatch, handleOpen, handleSearchResultChanged, init, internalRemoveSelected, isLayoutSupported, postEnsureSelection, restoreState, saveState, setFocus, setID, setInput, setLayout, setViewPart, showMatch |
Methods inherited from class org.eclipse.ui.part.Page |
getSite, makeContributions, setActionBars |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.part.IPageBookViewPage |
getSite |
Methods inherited from interface org.eclipse.ui.part.IPage |
setActionBars |
ORDER_PRIORITY
public static final int ORDER_PRIORITY
- See Also:
- Constant Field Values
ORDER_DESCRIPTION
public static final int ORDER_DESCRIPTION
- See Also:
- Constant Field Values
ORDER_SEVERITY
public static final int ORDER_SEVERITY
- See Also:
- Constant Field Values
ORDER_STATUS
public static final int ORDER_STATUS
- See Also:
- Constant Field Values
ORDER_ID
public static final int ORDER_ID
- See Also:
- Constant Field Values
ORDER_DEFAULT
public static final int ORDER_DEFAULT
- See Also:
- Constant Field Values
KEY_SORTING
private static final java.lang.String KEY_SORTING
- See Also:
- Constant Field Values
taskContentProvider
private SearchResultContentProvider taskContentProvider
currentSortOrder
private int currentSortOrder
sortByPriorityAction
private SearchResultSortAction sortByPriorityAction
sortByDescriptionAction
private SearchResultSortAction sortByDescriptionAction
openInEditorAction
private OpenSearchResultAction openInEditorAction
SHOW_IN_TARGETS
private static final java.lang.String[] SHOW_IN_TARGETS
SHOW_IN_TARGET_LIST
private static final org.eclipse.ui.part.IShowInTargetList SHOW_IN_TARGET_LIST
RepositorySearchResultView
public RepositorySearchResultView()
- Constructor
elementsChanged
protected void elementsChanged(java.lang.Object[] objects)
- Specified by:
elementsChanged
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage
clear
protected void clear()
- Specified by:
clear
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage
getViewer
public org.eclipse.jface.viewers.StructuredViewer getViewer()
- Overrides:
getViewer
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage
configureTreeViewer
protected void configureTreeViewer(org.eclipse.jface.viewers.TreeViewer viewer)
- Specified by:
configureTreeViewer
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage
configureTableViewer
protected void configureTableViewer(org.eclipse.jface.viewers.TableViewer viewer)
- Specified by:
configureTableViewer
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage
setSortOrder
public void setSortOrder(int sortOrder)
- Sets the new sorting category, and reorders all of the tasks.
- Parameters:
sortOrder
- The new category to sort by
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapterDelegate
private java.lang.Object getAdapterDelegate(java.lang.Class<?> adapter)
showMatch
protected void showMatch(org.eclipse.search.ui.text.Match match,
int currentOffset,
int currentLength,
boolean activate)
throws org.eclipse.ui.PartInitException
- Overrides:
showMatch
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage
- Throws:
org.eclipse.ui.PartInitException
fillContextMenu
protected void fillContextMenu(org.eclipse.jface.action.IMenuManager mgr)
- Overrides:
fillContextMenu
in class org.eclipse.search.ui.text.AbstractTextSearchViewPage