Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Integration with tabbed property sheet
[EMF Forms] Integration with tabbed property sheet [message #1742579] Mon, 05 September 2016 08:29 Go to next message
Eclipse UserFriend
Hi,

I am trying to integrate an EMF Forms property view inside a tabbed property sheet and I was able to render a view on a single tab with relative ease. The next step would be to create separate tabs on the property sheet. Is this possible with ECPSWTRenderer and ViewModelContext? From what i understand, the ViewProviderHelper can only load a single VView for an EObject. Is there any way to perhaps load several different views for a single EObject based on some key?

Thanks for your help,
Robert
Re: [EMF Forms] Integration with tabbed property sheet [message #1742602 is a reply to message #1742579] Tue, 06 September 2016 02:46 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

there is already a tab-based renderer. If you set the categorization element to "main category depth" >1, it will render the first levels as tabs. These are not "tabbed properties", but the renderer should show you the way. Are you planing to contribute this?

Best regards
Jonas
Re: [EMF Forms] Integration with tabbed property sheet [message #1742624 is a reply to message #1742602] Tue, 06 September 2016 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jonas,

thanks for your answer. We have already tried out the tab-based renderer, but here we are aiming at a bit different aspect: we have a complex form specified as a View, but the view is quite complex, so we want to break it up into different tabs. We are including this form into the Properties view and have implemented this using the calls ViewModelContextFactory#createViewModelContext and ViewProviderHelper#getView.

We have noticed that the latter call allows setting up some VViewModelProperties for the selection. We believe, using such view properties would allow us to define different views for the properties view, and include them into the properties view; however, we could not figure out how to set them up correctly.

Our question is two-folds: (1) are we correct in our assumption that these properties can be used to create separate views that we could assign to the different tabs of the Tabbed properties view, and (2) is there any example or documentation available how to use them correctly?

About contributing what we do, it is likely we can do it (at least as an example usage scenario), but we have to get a permission to do that.

Best regards,
Zoltán
Re: [EMF Forms] Integration with tabbed property sheet [message #1742742 is a reply to message #1742624] Wed, 07 September 2016 02:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

OK, if I understand correctly, you hust want to embed a EMF Forms into the existing tabbed property sheet. By default, EMF Forms will select the view model based on the EObject type that you hand in:
ECPSWTRenderer.render(Composite parent, EObject eObject). If you want one sepcific view and there are mutliple registered for a type, you can use properties to narrow that down. However, if you know exactly which view you want, it is probably easier to just load that view model and pass it over.
Best regards
Jonas
Re: [EMF Forms] Integration with tabbed property sheet [message #1743140 is a reply to message #1742742] Mon, 12 September 2016 10:47 Go to previous message
Eclipse UserFriend
Hi,

thanks for the answer, it was most helpful. I managed to manually add the specified view model using an XMIViewModelProvider implementation, and thus could create multiple tabs using EMFForms.

Best regards,
Zoltán
Previous Topic:[EMFForms] Adding model instances to the "running" instance
Next Topic:Problem loading plugin with other plugin in Eclipse Application execution
Goto Forum:
  


Current Time: Sun Jul 20 23:09:30 EDT 2025

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

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

Back to the top