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
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 . |
ValidateHandler
public ValidateHandler()
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.