org.eclipse.ocl.examples.emf.validation.validity.export
Class ValidityExporterListener

java.lang.Object
  extended by org.eclipse.ocl.examples.emf.validation.validity.export.ValidityExporterListener
All Implemented Interfaces:
java.util.EventListener, org.eclipse.core.runtime.IRegistryEventListener

public class ValidityExporterListener
extends java.lang.Object
implements org.eclipse.core.runtime.IRegistryEventListener

This listener will allow us to be aware of contribution changes against the exporter extension point.


Field Summary
static java.lang.String VALIDITY_EXPORTER_EXTENSION_POINT
          Name of the extension point to parse for extensions.
 
Constructor Summary
ValidityExporterListener()
           
 
Method Summary
 void added(org.eclipse.core.runtime.IExtension[] extensions)
          
 void added(org.eclipse.core.runtime.IExtensionPoint[] extensionPoints)
          
protected  void logError(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String text)
          Logs the error in the desktop log using the provided text and the information in the configuration element.
protected  void logMissingAttribute(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String attributeName)
          Logs a very common registry error when a required attribute is missing.
 void parseInitialContributions()
          Though this listener reacts to the extension point changes, there could have been contributions before it's been registered.
 void removed(org.eclipse.core.runtime.IExtension[] extensions)
          
 void removed(org.eclipse.core.runtime.IExtensionPoint[] extensionPoints)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDITY_EXPORTER_EXTENSION_POINT

public static final java.lang.String VALIDITY_EXPORTER_EXTENSION_POINT
Name of the extension point to parse for extensions.

See Also:
Constant Field Values
Constructor Detail

ValidityExporterListener

public ValidityExporterListener()
Method Detail

added

public void added(org.eclipse.core.runtime.IExtension[] extensions)

Specified by:
added in interface org.eclipse.core.runtime.IRegistryEventListener
See Also:
IRegistryEventListener.added(org.eclipse.core.runtime.IExtension[])

added

public void added(org.eclipse.core.runtime.IExtensionPoint[] extensionPoints)

Specified by:
added in interface org.eclipse.core.runtime.IRegistryEventListener
See Also:
IRegistryEventListener.added(org.eclipse.core.runtime.IExtensionPoint[])

logError

protected void logError(org.eclipse.core.runtime.IConfigurationElement element,
                        java.lang.String text)
Logs the error in the desktop log using the provided text and the information in the configuration element.


logMissingAttribute

protected void logMissingAttribute(org.eclipse.core.runtime.IConfigurationElement element,
                                   java.lang.String attributeName)
Logs a very common registry error when a required attribute is missing.


parseInitialContributions

public void parseInitialContributions()
Though this listener reacts to the extension point changes, there could have been contributions before it's been registered. This will parse these initial contributions.


removed

public void removed(org.eclipse.core.runtime.IExtension[] extensions)

Specified by:
removed in interface org.eclipse.core.runtime.IRegistryEventListener
See Also:
IRegistryEventListener.removed(org.eclipse.core.runtime.IExtension[])

removed

public void removed(org.eclipse.core.runtime.IExtensionPoint[] extensionPoints)

Specified by:
removed in interface org.eclipse.core.runtime.IRegistryEventListener
See Also:
IRegistryEventListener.removed(org.eclipse.core.runtime.IExtensionPoint[])