|Re: [EMFForms] Tree Master Detail [message #1708990 is a reply to message #1708884]
||Wed, 23 September 2015 07:43
| Jonas Helming
Registered: July 2009
Am 22.09.2015 um 10:44 schrieb Martin Jonsson:
> Hello all.
> There does not seem to be any examples of the Tree Master Detail
> control. This leaves me in the blind in what is going wrong in my
> implementation and I have nothing to cross reference with.
> Does anybody have a working example of the tree master detail?
Yes, but actually, TreeMasterDetail is very simple. You add the
TreeMasterDetail element to your view (typically as the one and only
root element of a view). As a child of the treemaster detail view, you
add another view for the root object of the tree. This view will be
shown on the right side, if you select the root object in the tree. For
all other objects in the tree, the registsred view models will be used.
> The specific problem is that the registered view model lacks the context
> menu completely. However, the EMF Forms preview is working flawlessly.
Can you explain a little more in detail where context menus are missing
in the view model?
> Also, with some EObjects, another view model is picked up than the one
> expected, is there any way to see which view models are actually
> registered, eclipse wide, for the actual EObject?
Just search your plugin.xml files for the extension point
"org.eclipse.emf.ecp.view.model.provider.xmi.file". If you did not
implement any view model provider yourself, this will reveal all
registered view models.
> I'm using the SWT registering
> (ECPSWTViewRenderer.INSTANCE.render(Composite,EObject ))
> Many thanks!
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.02159 seconds