|Best way to open a TreeViewer [message #1744412]
||Mon, 26 September 2016 16:01
| Philipp Heisig
Registered: November 2014
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?
[Updated on: Mon, 26 September 2016 16:02]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02065 seconds