Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMF FORM(controls, rules, group, label and separator for context menu - TreeMasterDetail view child elements in context menu)
EMF FORM [message #1386690] Thu, 19 June 2014 13:42 Go to next message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
Is it possible to add controls, rules, group, label and separator for context menu in TreeMasterDetail view child elements in context menu of ecp emf form view model
Re: EMF FORM [message #1387005 is a reply to message #1386690] Mon, 23 June 2014 13:07 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 63
Registered: March 2012
Member
Hi,
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
Re: EMF FORM [message #1387124 is a reply to message #1387005] Tue, 24 June 2014 10:02 Go to previous messageGo to next message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
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.
index.php/fa/18349/0/

Customize layout of task child element in tree.
index.php/fa/18350/0/

Best Regards,
Ranjeeth
Re: EMF FORM [message #1387530 is a reply to message #1387124] Wed, 25 June 2014 08:04 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

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
>
Re: EMF FORM [message #1387622 is a reply to message #1387530] Wed, 25 June 2014 10:43 Go to previous messageGo to next message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
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
Re: EMF FORM [message #1388193 is a reply to message #1387622] Thu, 26 June 2014 05:34 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

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
>
Re: EMF FORM [message #1388283 is a reply to message #1388193] Thu, 26 June 2014 08:05 Go to previous messageGo to next message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
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.
Re: EMF FORM [message #1389013 is a reply to message #1388283] Fri, 27 June 2014 07:57 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

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.
>
Re: EMF FORM [message #1389103 is a reply to message #1389013] Fri, 27 June 2014 10:42 Go to previous message
Ranjeeth Rajendran is currently offline Ranjeeth RajendranFriend
Messages: 17
Registered: July 2009
Junior Member
Hello Jonas,

Thanks for your feedback, have raised BR for the same.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=438374

Kind Regards,
Ranjeeth.
Previous Topic:[ECP] Custom ModelContentProvider
Next Topic:[EMF Forms]NPE on Start of Application every time
Goto Forum:
  


Current Time: Fri Mar 05 07:32:20 GMT 2021

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

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

Back to the top