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 Listeners



This extension point is used to define validation listeners for the validation service (org.eclipse.emf.validation.service.ModelValidationService).

The validation service will inform this listener whenever validation has occurred, loading it if necessary in order to do so. Thus, this extension point is most useful for cases where client plug-ins need to find out about validation events even before they are loaded. Otherwise, it is usually simpler just to programmatically add a listener to the validation service.

Configuration Markup:

<!ELEMENT extension ( listener+)>

<!ATTLIST extension





<!ELEMENT listener ( clientContext*)>

<!ATTLIST listener



Registers an implementation of the IValidationListener interface to receive notifications of validation events.

  • class - The listener class. A single instance of this listener will be instantiated when needed in order to notify it.

<!ELEMENT clientContext EMPTY>

<!ATTLIST clientContext



Declares one of the handled client contexts for this validation listener. No client contexts indicates that all events should be sent to the listener object.

  • id - The identifier for the targetted client context for which this listener is interested.

The following is an example of a universal validation listener registration:

<extension point=
   <listener class=

The following is an example of a validation listener that is registered to listen to a specific client context:

<extension point=
   <listener class=
     <clientContext id=

Copyright (c) 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at

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