Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse EMF Validation Framework
Previous Page Home Next Page

Validation Example


This example describes the usage of the validation framework within the SDK. It demonstrates how to specify constraints for the library meta-model and bind the constraints to the library application context.


Please refer to the document EMF Validation Framework Examples Overview for reviewing the library meta-model used as the basis for demonstrating the capabilities in this example.


This example plug-in is named org.eclipse.emf.validation.examples. This plug-in contributes the Validation menu to the library editor's main menu and context menu. The menu has two items:

  1. Enable Live Validation: This actions registers a EContentAdapter against the library Resource to receive immediate notifications. Within the notifyChanged callback the model validation service is called to provide a live validation f the Notification object.
  2. Validate Elements: This action calls upon the model validation service to provide a batch validation of the selected EObjects and their children.

Please refer to the tutorial Validation Tutorial for reviewing the code samples within this example

Validation Example Contributions


Refer to this example if you need:

  1. To specify constraints for any EMF meta-model (batch and live constraints)
  2. To specify custom model traversal algorithms for batch validation
  3. To specify constraint bindings to application contexts
  4. To listen to validation events
  5. To define triggers for evaluation of batch and live constraints

Copyright (c) 2000,2005 IBM Corporation and others. All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire