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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

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

  




 

 

Eclipse EMF Validation Framework
Previous Page Home Next Page

Validation Listeners

Identifier:
org.eclipse.emf.validation.validationListeners

Since:
1.0

Description:
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

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT listener ( clientContext*)>

<!ATTLIST listener

class CDATA #REQUIRED

>

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

id CDATA #IMPLIED

>

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.

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


<extension point=
"org.eclipse.emf.validation.validationListeners"
>
   <listener class=
"com.example.validation.ValidationListener"
/>
</extension>

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


<extension point=
"org.eclipse.emf.validation.validationListeners"
>
   <listener class=
"com.example.validation.ValidationListener"
/>
     <clientContext id=
"com.example.validation.aValidationClientContext"
/>
</extension>


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 https://www.eclipse.org/legal/epl-v10.html


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