public final class NavigatorContentServiceFactory extends Object
INavigatorContentService
s
for given viewer ids.
Clients may supply the viewer in createContentService(String, StructuredViewer)
or wait until the content provider is created by the service
and set on the viewer. When the content provider is set, the
viewer will call inputChanged(), and the content service
will update its managed viewer accordingly. Therefore, each
content service should be attached to at most one viewer.
Modifier and Type | Field and Description |
---|---|
static NavigatorContentServiceFactory |
INSTANCE
The singleton instance for creating NavigatorContentServices.
|
Constructor and Description |
---|
NavigatorContentServiceFactory() |
Modifier and Type | Method and Description |
---|---|
INavigatorContentService |
createContentService(String aViewerId)
Returns an instance of INavigatorContentService configured
for the given id.
|
INavigatorContentService |
createContentService(String aViewerId,
StructuredViewer aViewer)
Returns an instance of INavigatorContentService configured
for the given id.
|
public static final NavigatorContentServiceFactory INSTANCE
public INavigatorContentService createContentService(String aViewerId)
aViewerId
- The viewer id of interestpublic INavigatorContentService createContentService(String aViewerId, StructuredViewer aViewer)
aViewerId
- The viewer id of interestaViewer
- The content service can use the given viewer to initialize content providersIContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer, Object, Object)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.