|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.navigator.NavigatorContentServiceFactory
Provides a factory pattern for creating 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.
Field Summary | |
---|---|
static NavigatorContentServiceFactory |
INSTANCE
The singleton instance for creating NavigatorContentServices. |
Constructor Summary | |
---|---|
NavigatorContentServiceFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final NavigatorContentServiceFactory INSTANCE
Constructor Detail |
public NavigatorContentServiceFactory()
Method Detail |
public INavigatorContentService createContentService(String aViewerId)
aViewerId
- The viewer id of interest
public INavigatorContentService createContentService(String aViewerId, StructuredViewer aViewer)
aViewerId
- The viewer id of interestaViewer
- The content service can use the given viewer to initialize content providers
IContentProvider.inputChanged(org.eclipse.jface.viewers.Viewer, Object, Object)
|
Eclipse Platform Release 3.2 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.