Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsBest way to open a TreeViewer
https://www.eclipse.org/forums/index.php/mv/msg/1081527/1744412/#msg_1744412
within my EMF editor, I want to open a popup containing a TreeViewer when a user clicks on a menuitem.
So far, I've created the according extension point and handler, but at this point I'm not sure what is the best approach to embed the treeviewer.
One possibility would be to create an dialog with an embedded treeviewer inside the handler class, which opens in case a user clicks on the meu item.
However, I've seen some example where a ViewPart is used along with the createPartControl(Composite parent). Is this recommended? If so, I don't really understand how to open the treeviewer then. Can anyone explain the common way and maybe provide a small example?