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

java.lang.Object
  extended by 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


Copyright © 2014. All Rights Reserved.