Defer Eclipse Treeviewer loading by DeferredTreeContentManager
I understand there is an approach to defer T开发者_如何学PythonreeViewer
loading by using DeferredTreeContentManager
, learnt from this useful tutorial.
However, this mechanism requires the model to implement IDeferredWorkbenchAdapter
interface, which introduces problem to my legacy immutable model classes. Is it possible to use DeferredTreeContentManager
without having model implementing IDeferredWorkbenchAdapter
interface?
Just realized that I can use AdapterFactory to covert the model to IDeferredWorkbenchAdapter. Problem solved!
精彩评论