Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Best way to open a TreeViewer
Best way to open a TreeViewer [message #1744412] Mon, 26 September 2016 16:01
Philipp Heisig is currently offline Philipp HeisigFriend
Messages: 26
Registered: November 2014
Junior Member

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

Previous Topic:StackOverflowError with databinding
Next Topic:Is there a PathEditorField decorator ?
Goto Forum:

Current Time: Thu Apr 22 10:11:56 GMT 2021

Powered by FUDForum. Page generated in 0.02056 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top