use of org.eclipse.ui.internal.navigator.extensions.StructuredViewerManager in project polymap4-core by Polymap4.
the class NavigatorContentService method updateService.
protected void updateService(Viewer aViewer, Object anOldInput, Object aNewInput) {
// NavigatorContentServiceContentProvider, which gets us here
if (isDisposed)
return;
synchronized (this) {
if (structuredViewerManager == null) {
structuredViewerManager = new StructuredViewerManager((StructuredViewer) aViewer, this);
structuredViewerManager.inputChanged(anOldInput, aNewInput);
} else {
structuredViewerManager.inputChanged(aViewer, anOldInput, aNewInput);
}
for (Iterator contentItr = contentExtensions.values().iterator(); contentItr.hasNext(); ) {
NavigatorContentExtension ext = (NavigatorContentExtension) contentItr.next();
if (ext.isLoaded()) {
structuredViewerManager.initialize(ext.internalGetContentProvider());
}
}
rootContentProviders = extractContentProviders(findRootContentExtensions(aNewInput));
}
}
Aggregations