Interface INavigatorContentProviderStateProvider
-
- All Known Implementing Classes:
InactiveNavigatorContentProviderStateProvider
,NavigatorContentProviderStateManager
public interface INavigatorContentProviderStateProvider
The helper to manipulate the source of the navigator content provider. This helper allows clients to get the navigator content quickly.For example, if the clients want to show the nodes of the navigator which satisfy the search request, they firstly may find all nodes which satisfy the search request, put them into
IEObjectTrie
, activateINavigatorContentProviderStateProvider
. The navigator content provider will be return only nodes which belong toIEObjectTrie
stored inINavigatorContentProviderStateProvider
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEObjectTrie
getEObjectTrie(org.eclipse.core.resources.IProject project)
Gets theIEObjectTrie
for the given project.boolean
isActive()
Checks whether theINavigatorContentProviderStateProvider
is active.void
setActive(boolean active)
Sets whether theINavigatorContentProviderStateProvider
is active.
-
-
-
Method Detail
-
getEObjectTrie
IEObjectTrie getEObjectTrie(org.eclipse.core.resources.IProject project)
Gets theIEObjectTrie
for the given project. The returnedIEObjectTrie
describes the navigator structure which will be used by navigator content provider. The navigator content provider will be return only nodes which belong toIEObjectTrie
stored inINavigatorContentProviderStateProvider
.- Parameters:
project
- the given project to get itsIEObjectTrie
, can not benull
- Returns:
- the
IEObjectTrie
, may benull
-
isActive
boolean isActive()
Checks whether theINavigatorContentProviderStateProvider
is active.- Returns:
true
if theINavigatorContentProviderStateProvider
is active andfalse
otherwise
-
setActive
void setActive(boolean active)
Sets whether theINavigatorContentProviderStateProvider
is active.- Parameters:
active
-true
if theINavigatorContentProviderStateProvider
is active andfalse
otherwise
-
-