Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFForms] Tree Master Detail(Tree Master Detail)
[EMFForms] Tree Master Detail [message #1708884] Tue, 22 September 2015 08:44 Go to next message
Martin Jonsson is currently offline Martin JonssonFriend
Messages: 21
Registered: March 2013
Junior Member
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?

The specific problem is that the registered view model lacks the context menu completely. However, the EMF Forms preview is working flawlessly.

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?

I'm using the SWT registering (ECPSWTViewRenderer.INSTANCE.render(Composite,EObject ))

Many thanks!
Martin
Re: [EMFForms] Tree Master Detail [message #1708990 is a reply to message #1708884] Wed, 23 September 2015 07:43 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Martin,

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.

Best regards

Jonas


>
> I'm using the SWT registering
> (ECPSWTViewRenderer.INSTANCE.render(Composite,EObject ))
>
> Many thanks!
> Martin


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMFForms] Tree Master Detail [message #1709028 is a reply to message #1708990] Wed, 23 September 2015 11:57 Go to previous messageGo to next message
Martin Jonsson is currently offline Martin JonssonFriend
Messages: 21
Registered: March 2013
Junior Member
Hello Jonas.

There is no context menu appearing at all, right click on the object yields nothing. However, the preview shows everything correctly, if that is to any help.

Many thanks!
Martin

Re: [EMFForms] Tree Master Detail [message #1709123 is a reply to message #1709028] Thu, 24 September 2015 09:06 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Do the EObjects you hand in have an editing domain an/or are the
contained in a ressource? Otherwise, EMF Forms cannot execute commands
and will therefore not show the child creation actions...

Am 23.09.2015 um 13:57 schrieb Martin Jonsson:
> Hello Jonas.
>
> There is no context menu appearing at all, right click on the object
> yields nothing. However, the preview shows everything correctly, if that
> is to any help.
>
> Many thanks!
> Martin
>
>


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMFForms] Tree Master Detail [message #1709406 is a reply to message #1709123] Mon, 28 September 2015 09:39 Go to previous messageGo to next message
Martin Jonsson is currently offline Martin JonssonFriend
Messages: 21
Registered: March 2013
Junior Member
Hello Jonas.

I admit I did not check that. However, even if it works, in the real life example, I have to use a specific editing domain. This is an extension to the eclipse BPMN2 modeler so it uses the BPMN modelers editing domain.

Is there any way I can customize the editing domain in EMF Forms? So that all objects uses this specific editing domain.

Thanks.
Martin
Re: [EMFForms] Tree Master Detail [message #1709662 is a reply to message #1709406] Wed, 30 September 2015 07:28 Go to previous message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 161
Registered: May 2015
Senior Member
Hi Martin,
you can replace the used EditingDomain by setting the one you want to be used onto the resource that contains your eobjects.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:ECP 1.7 and EMFStore 1.6
Next Topic: [EMFStore] Unable to integrate EMFStore with Graphiti
Goto Forum:
  


Current Time: Sun Jul 12 01:31:18 GMT 2020

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

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

Back to the top