Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EmfForms TreeMasterViewer Validate Icon Image(EmfForms TreeMasterViewer Validate Icon Image Not Changed)
EmfForms TreeMasterViewer Validate Icon Image [message #1862594] Wed, 13 December 2023 00:57 Go to next message
Eclipse UserFriend
Hi,

We are trying validation error icon changed on treemasterdetail

User icon is not changed on treemasterdetail when Last Name field empty. Last Name field is red. Validation control is working for last name. But Not changed anything on treemasterviewer icon.

for this testing, I am created makeithappen Project form in Examples->EMF Forms as basicly. Not modify anything.

The screen shot is attached. There is a validation error on "Last Name" Field but User icon is not error image
Re: EmfForms TreeMasterViewer Validate Icon Image [message #1862685 is a reply to message #1862594] Wed, 20 December 2023 18:54 Go to previous message
Eclipse UserFriend
Hi Hakan,

In EMFForms, each node in the tree master detail renderer is provided with its own unique context. This is an efficient design choice because, by default, these contexts are disposed of when they're not active. This helps in managing resources effectively.

You've probably observed that validations on a user node are visible only when that node is selected in the tree. As soon as you switch to a different node, these validations are no longer displayed. This behavior aligns with the context-sensitive design of EMFForms.

However, if your requirement is to always show the validation (despite it being more memory-intensive), there's a solution for that. For a feature-based run configuration, you'll need to add the "EMF Forms Deep Validation Initial Feature" (org.eclipse.emf.ecp.view.validation.initial.feature). In case you're working with a plugin-based configuration, the required plugin is "org.eclipse.emf.ecp.view.treemasterdetail.validation".

These additions will ensure that validations are persistently visible, irrespective of the node selection in the tree.

Hope this helps and best of luck with your project!

Best,
Eugen
Previous Topic:[Edapt] Migrating cross reference classcast issue
Next Topic:No Model Importer available for EMF Generator Model
Goto Forum:
  


Current Time: Tue Jun 24 07:04:38 EDT 2025

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

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

Back to the top