Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsEMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1386690/#msg_1386690
Ranjeeth Rajendran2014-06-19T13:42:49-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1387005/#msg_1387005
what do you want to achieve?
The ViewModelEditor that is available since the 1.3 release, uses a treemasterdetail and allows to create controls etc inside the tree.
The shown context menu is based on the selected root eclass ]]>Eugen Neufeld2014-06-23T13:07:49-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1387124/#msg_1387124
want to customize the view of child node in the tree by adding Rule-based enablement and visibility for parts nested child elements in tree and add also some static UI elements.
rule based enablement for context menu item task based on the value of active status of user.
Customize layout of task child element in tree.
Best Regards,
Ranjeeth]]>Ranjeeth Rajendran2014-06-24T10:02:07-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1387530/#msg_1387530
for layouting the task, you can just add a view model for the Task
entity. It will be used by EMF Forms to render the element in the master
detail view.
The adaptation of the child creation actions is currently not supported
by EMF Forms and I do think, you should rather implement this in the
item provider of the User class.
Best regards
Jonas
Am 24.06.2014 12:02, schrieb Eclipse Account:
> Hello Hugen,
>
> want to customize the view of child node in the tree by adding Rule-based enablement and visibility for parts nested child elements in tree and add also some static UI elements.
>
> rule based enablement for context menu item task based on the value of active status of user.
>
>
> Customize layout of task child element in tree.
>
>
> Best Regards,
> Ranjeeth
>]]>Jonas Helming2014-06-25T08:04:11-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1387622/#msg_1387622
Thanks for your feedback.
With respect to the layouting of task i tried creating a new view model and it worked well thank you.
With respect to child creation action indeed the current genmodel can be configured to modify the edit code.
But the scenario i have for child creation action is that child action depends on other model elements, like we have rule based enablement and disablement depending on the values of other models/elements.
(say for example i would like to allow task creation action only if the user registration status is active) should i register a BR?
Kind Regards,
Ranjeeth
]]>Ranjeeth Rajendran2014-06-25T10:43:36-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1388193/#msg_1388193
I haven't looked into that in detail, but you can probably check this
condition in the item provider returning the child decriptors, too,
don't you?
Best Regards
Jonas
Am 25.06.2014 12:43, schrieb Eclipse Account:
> Hello Jonas,
>
> Thanks for your feedback.
>
> With respect to the layouting of task i tried creating a new view model
> and it worked well thank you.
>
> With respect to child creation action indeed the current genmodel can be
> configured to modify the edit code. But the scenario i have for child
> creation action is that child action depends on other model elements,
> like we have rule based enablement and disablement depending on the
> values of other models/elements.
> (say for example i would like to allow task creation action only if the
> user registration status is active) should i register a BR?
>
> Kind Regards,
> Ranjeeth
>]]>Jonas Helming2014-06-26T05:34:03-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1388283/#msg_1388283
There are two scenario-
1) i have only one view model to represent:
- Yes, we can hardcode the condition in the item provider, which means i have to build and deploy again and again for even a very small change in business condition.
2) i have multiple view model for same ecore model.
- In this case it becomes blocker, we can't modify the item provider.
Kind Regards,
Ranjeeth.
]]>Ranjeeth Rajendran2014-06-26T08:05:07-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1389013/#msg_1389013
OK, in this case I would agree and make it part of the view model then...
Best Regards
Jonas
Am 26.06.2014 10:05, schrieb Eclipse Account:
> Hello Jonas,
>
> There are two scenario-
>
> 1) i have only one view model to represent:
> - Yes, we can hardcode the condition in the item provider, which
> means i have to build and deploy again and again for even a very small
> change in business condition. 2) i have multiple view model for same
> ecore model.
> - In this case it becomes blocker, we can't modify the item
> provider.
>
> Kind Regards,
> Ranjeeth.
>]]>Jonas Helming2014-06-27T07:57:38-00:00Re: EMF FORM
https://www.eclipse.org/forums/index.php/mv/msg/781953/1389103/#msg_1389103
Thanks for your feedback, have raised BR for the same.