Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » how to display eStructuralFeatures based on certain condition(can test fields be rendered on GUI screen depending upon configuration or condition)
how to display eStructuralFeatures based on certain condition [message #1790550] Tue, 12 June 2018 18:33 Go to next message
KEDAR SIRSHIKAR is currently offline KEDAR SIRSHIKARFriend
Messages: 11
Registered: April 2017
Junior Member
Requirement is to display/render certain widgets like text field, button on a restricted basis. e.g. these details will be displayed for only restricted clients and not all.

I am providing list of arguments to current RAP application while launching.
So is there any facility by which I can read a parameter (using System.getProperty API) and render widgets on screen?

Currently all widgets are displayed using ecore and code is generated by genmodel as below.
e.g.
<eStructuralFeatures xsi:type="ecore:EAttribute" name="subscriberFilepath" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">

Please let me know if there is any way of implementing this requirement.
Re: how to display eStructuralFeatures based on certain condition [message #1790599 is a reply to message #1790550] Wed, 13 June 2018 12:02 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 147
Registered: May 2015
Senior Member
Hi,

do you use EMFForms to render your model?

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: how to display eStructuralFeatures based on certain condition [message #1790619 is a reply to message #1790599] Wed, 13 June 2018 15:57 Go to previous messageGo to next message
KEDAR SIRSHIKAR is currently offline KEDAR SIRSHIKARFriend
Messages: 11
Registered: April 2017
Junior Member
Hi Eugen,
Not sure if EMFForms are used however I am using .ecore and .genmodel.
May I know how can I verify about EMFForm? I'll check and update.


Re: how to display eStructuralFeatures based on certain condition [message #1790664 is a reply to message #1790619] Thu, 14 June 2018 07:30 Go to previous message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 147
Registered: May 2015
Senior Member
Hi,
can you elaborate how you do this:
Quote:

Currently all widgets are displayed using ecore and code is generated by genmodel as below.

Because by generating the model you only get your model classes but no ui.
So my question is how do you render widgets and bind them to your model?

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:[EMF Forms] Generic Editor and RAP
Next Topic:[EMF Forms] Move from 1.9 to 1.17
Goto Forum:
  


Current Time: Sat Sep 22 02:53:47 GMT 2018

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

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

Back to the top