|EMF Element Binding to TreeViewer [message #1806175]
||Sun, 05 May 2019 00:14
| Parsa Pourali
Registered: February 2014
I am using the below code snippet to show the model contents in a treeviewer. This works fine as I give the whole eResource as the input! However, I need to show only some part of the model, so I don't wanna start from the root of the model! I tried to give the element as the input but it doesn't work when I input an element in treeviewer's setinput (). Any idea would be appreciated.
composedAdapterFactory = new ComposedAdapterFactory(ComposedAdapterFactory.Descriptor.Registry.INSTANCE);
Tree tree = new Tree(this, SWT.SINGLE);
TreeViewer tv = new TreeViewer(tree);
//HOW TO GIVE AN ELEMENT AND NOT THE RESOURCE HERE ?
[Updated on: Sun, 05 May 2019 00:15]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01541 seconds