Class PreSetValidationListeners.PreSetVerifyListener
- java.lang.Object
-
- org.eclipse.emf.ecp.edit.internal.swt.util.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)
-
-
-
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 thePreSetValidationListeners.verify(Text, EStructuralFeature)
API and its variants, and do not manage these listeners directlyConstructor.- Parameters:
vElement
- theVElement
anyVDiagnostic
will be attached toattribute
- theEAttribute
to be validated
-
-
Method Detail
-
verifyText
public void verifyText(org.eclipse.swt.events.VerifyEvent e)
- Specified by:
verifyText
in interfaceorg.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
-
-