Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMFForms: Is it possible to split the generated controls across several wizard pages?
EMFForms: Is it possible to split the generated controls across several wizard pages? [message #1457654] Fri, 31 October 2014 11:10 Go to next message
Eclipse UserFriend
Hello!

Imagine I have an EMF model with 10 attributes.

I want EMFForms to generate the UI for entering those 10 values such that 5 of them are located on one wizard page, and the ohers on a second one.

I managed to embed EMF-based UIs into a single wizard page (using
ECPSWTView view = ECPSWTViewRenderer.INSTANCE.render(parent, myModelInstance);
), but how can I split the fields across several wizard pages?

Note that I want both pages to operate on the same EMF model.

Thanks in advance

Dmitri

[Updated on: Fri, 31 October 2014 11:10] by Moderator

Re: EMFForms: Is it possible to split the generated controls across several wizard pages? [message #1457729 is a reply to message #1457654] Fri, 31 October 2014 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi again!

Update: I found out that it is possible to create 2 different view models for 2 wizard pages. Let's say I have view model files "WizardPage1.view" and "WizardPage2.view".

In the ECPSWTViewRenderer interface there is a method

ECPSWTView render(Composite parent, EObject domainObject, VView viewModel) throws ECPRendererException;


So, if I manage to load VView from my files, I could create two UI objects for 2 wizard pages.

If someone knows, how I can create a VView or ViewModelContext for a particular view model (e. g. "WizardPage2.view"), please tell me.

Thanks

Dmitri
Re: EMFForms: Is it possible to split the generated controls across several wizard pages? [message #1460140 is a reply to message #1457729] Mon, 03 November 2014 03:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

view models can be loaded like any other EMF model instance. See this
tutorial http://eclipsesource.com/blogs/tutorials/emf-tutorial/
section data management.

Best regards

Jonas

Am 31.10.2014 17:38, schrieb Dmitri Pisarenko:
> Hi again!
>
> Update: I found out that it is possible to create 2 different view
> models for 2 wizard pages. Let's say I have view model files
> "WizardPage1.view" and "WizardPage2.view".
>
> In the ECPSWTViewRenderer interface there is a method
>
> ECPSWTView render(Composite parent, EObject domainObject, VView
> viewModel) throws ECPRendererException;
>
> So, if I manage to load VView from my files, I could create two UI
> objects for 2 wizard pages.
>
> If someone knows, how I can create a VView or ViewModelContext for a
> particular view model (e. g. "WizardPage2.view"), please tell me.
>
> Thanks
>
> Dmitri
Re: EMFForms: Is it possible to split the generated controls across several wizard pages? [message #1462238 is a reply to message #1460140] Wed, 05 November 2014 06:01 Go to previous message
Eclipse UserFriend
Thanks!
Previous Topic:EMF Client Platform and Sirius
Next Topic:[TEXO] Importing Java package in xpt templates
Goto Forum:
  


Current Time: Fri Jul 04 09:42:46 EDT 2025

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

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

Back to the top