Class PreSetValidationListeners.PreSetVerifyListener

  • All Implemented Interfaces:
    java.util.EventListener, org.eclipse.swt.events.VerifyListener, org.eclipse.swt.internal.SWTEventListener
    Enclosing class:
    PreSetValidationListeners

    public static class PreSetValidationListeners.PreSetVerifyListener
    extends java.lang.Object
    implements org.eclipse.swt.events.VerifyListener
    Default VerifyListener implementation.
    • Constructor Summary

      Constructors 
      Constructor Description
      PreSetVerifyListener​(VElement vElement, org.eclipse.emf.ecore.EAttribute attribute)
      Deprecated.
      This constructor uses the deprecated singleton instances that reference the wrong view-model context.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String obtainText​(org.eclipse.swt.events.VerifyEvent event)
      Obtain the text value of the widget.
      void verifyText​(org.eclipse.swt.events.VerifyEvent e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PreSetVerifyListener

        @Deprecated
        public PreSetVerifyListener​(VElement vElement,
                                    org.eclipse.emf.ecore.EAttribute attribute)
        Deprecated.
        This constructor uses the deprecated singleton instances that reference the wrong view-model context. As of the 1.22 release, use the PreSetValidationListeners.verify(Text, EStructuralFeature) API and its variants, and do not manage these listeners directly
        Constructor.
        Parameters:
        vElement - the VElement any VDiagnostic will be attached to
        attribute - the EAttribute to be validated
    • Method Detail

      • verifyText

        public void verifyText​(org.eclipse.swt.events.VerifyEvent e)
        Specified by:
        verifyText in interface org.eclipse.swt.events.VerifyListener
      • obtainText

        protected java.lang.String obtainText​(org.eclipse.swt.events.VerifyEvent event)
        Obtain the text value of the widget.
        Parameters:
        event - the event
        Returns:
        the current text value