Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFFORMS] Tree and Tree Master Detail View([EMFFORMS] Tree and Tree Master Detail View)
[EMFFORMS] Tree and Tree Master Detail View [message #1441420] Thu, 09 October 2014 18:05 Go to next message
Carsten Block is currently offline Carsten BlockFriend
Messages: 3
Registered: October 2014
Junior Member
Hi,

i'm quite new to EMFForms, but very interested in this technology.

Can anyone, please point me to an example of a working tree view and if posssible to a tree master detail view, which uses EMFForms?

Thx
Re: [EMFFORMS] Tree and Tree Master Detail View [message #1441870 is a reply to message #1441420] Fri, 10 October 2014 09:42 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Carsten,

there is currently no example in the documentation, but tree master
detail views are pretty simple to use. Create a view model for the root
element and add tree master detail as the only root element of that
view. Within the view which is a sub element of the tree master detail,
you define what is shown in the details view, when you select the root
element. For sub element, you just create dedicated view elements.
Does that help?

Best regards

Jonas

Am 09.10.2014 20:30, schrieb Carsten Block:
> Hi,
>
> i'm quite new to EMFForms, but very interested in this technology.
>
> Can anyone, please point me to an example of a working tree view and if
> posssible to a tree master detail view, which uses EMFForms?
>
> Thx
Re: [EMFFORMS] Tree and Tree Master Detail View [message #1448863 is a reply to message #1441870] Mon, 20 October 2014 14:50 Go to previous messageGo to next message
Carsten Block is currently offline Carsten BlockFriend
Messages: 3
Registered: October 2014
Junior Member
Hi Jonas,

thx for your reply.
Unfortunatelly i can't get my view working.
I have defined a simple model with a 'TaskManager' and its child elements 'User'.

The files are attached.

I aspected a tree view with the view i definded for the 'User'.
But what i see is a table, with 'User' elements.

What did i do wrong?
Re: [EMFFORMS] Tree and Tree Master Detail View [message #1448933 is a reply to message #1448863] Mon, 20 October 2014 17:04 Go to previous messageGo to next message
Carsten Block is currently offline Carsten BlockFriend
Messages: 3
Registered: October 2014
Junior Member
I create the renderer with
			final ViewModelContext vmc = ViewModelContextFactory.INSTANCE.createViewModelContext(
				ViewProviderHelper.getView(taskManager, null), taskManager, new DefaultReferenceService());

			ECPSWTViewRenderer.INSTANCE.render(content, vmc);
Re: [EMFFORMS] Tree and Tree Master Detail View [message #1449247 is a reply to message #1448863] Tue, 21 October 2014 04:48 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

you attached a view for the EClass Task manager showing a treeview. I
tested this and it shows me the tree view. So I am sorry, maybe I do not
underatand your issue correctly, because you wrote you defined a tree
view for "User"? However, user does not have any children..

best regards

Jonas

Am 20.10.2014 16:50, schrieb Carsten Block:
> Hi Jonas,
>
> thx for your reply.
> Unfortunatelly i can't get my view working.
> I have defined a simple model with a 'TaskManager' and its child elements 'User'.
>
> The files are attached.
>
> I aspected a tree view with the view i definded for the 'User'.
> But what i see is a table, with 'User' elements.
>
> What did i do wrong?
>
Previous Topic:[EMFStore] filter model elements
Next Topic:[EMFStore] Retaining ID's
Goto Forum:
  


Current Time: Tue Mar 19 03:36:36 GMT 2024

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

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

Back to the top