Class ValidateHandler


  • public class ValidateHandler
    extends java.lang.Object
    Handler for performing a validation using the ECPDiagnostician.
    Author:
    jfaltermeier
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidateHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canExecute​(org.eclipse.emf.ecore.EObject object)
      Whether the handler can be executed for the current selection.
      void execute​(org.eclipse.emf.ecore.EObject object)
      Performs a validation for currently selected EObject and passes the result to the ECPValidationResultService.
      • Methods inherited from class java.lang.Object

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

      • ValidateHandler

        public ValidateHandler()
    • Method Detail

      • execute

        @Execute
        public void execute​(@Named("org.eclipse.ui.selection") @Optional
                            org.eclipse.emf.ecore.EObject object)
        Performs a validation for currently selected EObject and passes the result to the ECPValidationResultService.
        Parameters:
        object - the object to validate
      • canExecute

        @CanExecute
        public boolean canExecute​(@Named("org.eclipse.ui.selection") @Optional
                                  org.eclipse.emf.ecore.EObject object)
        Whether the handler can be executed for the current selection.
        Parameters:
        object - the current selection
        Returns:
        true if executable, false otherwise