About CommonViewers.init() in org.eclipse.ui.navigator [message #1786854] |
Mon, 14 May 2018 09:21  |
Eclipse User |
|
|
|
I have a question which is whether org.eclipse.ui.navigator supports virtual tree of SWT.
The class CommonViewers in org.eclipse.ui.navigator provides the Tree viewer for the common navigator. But from our analysis, we find that CommonViewers does not support virtual tree of SWT. Because in its init() func, the type of ContentProvider is NavigatorContentServiceContentProvider which is instance of ITreeContentProvider and ITreePathContentProvider, not instance of ILazyContentProvider and ILazyTreePathContentProvider which are the content provider for trees viewers created using the SWT.VIRTUAL. And we don't find any class implements ILazyContentProvider and ILazyTreePathContentProvider in org.eclipse.ui.navigator.
So if anyone can give me some advise about the class implements ILazyContentProvider and ILazyTreePathContentProvider in org.eclipse.ui.navigator, or if there is other tree viewers in org.eclipse.ui.navigator support SWT.VIRTUAL, and anything about the question is welcomed.
Thank you very much!
protected void init() {
setUseHashlookup(true);
setContentProvider(contentService.createCommonContentProvider());
setLabelProvider(new NavigatorDecoratingLabelProvider(contentService.createCommonLabelProvider()));
initDragAndDrop();
}
public ITreeContentProvider createCommonContentProvider() {
if (contentProviderInitialized) {
return contentProvider;
}
synchronized (this) {
if (contentProvider == null) {
contentProvider = new NavigatorContentServiceContentProvider(
this);
}
contentProviderInitialized = true;
}
return contentProvider;
}
|
|
|
|
Re: About CommonViewers.init() in org.eclipse.ui.navigator [message #1786890 is a reply to message #1786860] |
Tue, 15 May 2018 03:24  |
Eclipse User |
|
|
|
OK. Thanks for your reply. And I have read the comment of bug130221. This is very useful for us. Thank you very much.
Anyway, we also expect to solve the bug in the new eclipse platform in the future. And from our analysis, we think that lazy tree expansion can really have a good performance improvement for explore tree viewer.
|
|
|
Powered by
FUDForum. Page generated in 0.04433 seconds