Skip to main content



      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 14:33 Go to next message
Eclipse UserFriend
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 08:02 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

do you use EMFForms to render your model?

Cheers,
Eugen
Re: how to display eStructuralFeatures based on certain condition [message #1790619 is a reply to message #1790599] Wed, 13 June 2018 11:57 Go to previous messageGo to next message
Eclipse UserFriend
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 03:30 Go to previous message
Eclipse UserFriend
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
Previous Topic:[EMF Forms] Generic Editor and RAP
Next Topic:[EMF Forms] Move from 1.9 to 1.17
Goto Forum:
  


Current Time: Tue Jun 17 12:38:42 EDT 2025

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

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

Back to the top