Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:10 Go to next message
Dmitri Pisarenko is currently offline Dmitri PisarenkoFriend
Messages: 24
Registered: September 2014
Junior Member
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 15:10]

Report message to a 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 16:38 Go to previous messageGo to next message
Dmitri Pisarenko is currently offline Dmitri PisarenkoFriend
Messages: 24
Registered: September 2014
Junior Member
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 08:29 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
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 11:01 Go to previous message
Dmitri Pisarenko is currently offline Dmitri PisarenkoFriend
Messages: 24
Registered: September 2014
Junior Member
Thanks!
Previous Topic:EMF Client Platform and Sirius
Next Topic:[TEXO] Importing Java package in xpt templates
Goto Forum:
  


Current Time: Mon Apr 06 22:11:05 GMT 2020

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

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

Back to the top