Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.emf.ecp.ui.validation.e4.handler
Class ValidateHandler

    java.lang.Object
      org.eclipse.emf.ecp.ui.validation.e4.handler.ValidateHandler

    public class ValidateHandler

extends Object

Handler for performing a validation using the `ECPDiagnostician`.

Author:
  jfaltermeier

Constructor Summary
`ValidateHandler()`

Method Summary
`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
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ValidateHandler

    public ValidateHandler()

Method Detail

### execute

    @Execute
    public void execute(@Named(value="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(value="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

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.