Class ValidateHandler
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.validation.e4.handler.ValidateHandler
-
public class ValidateHandler extends java.lang.Object
Handler for performing a validation using theECPDiagnostician
.- 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 theECPValidationResultService
.
-
-
-
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 theECPValidationResultService
.- 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
-
-