As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
public Object execute(ExecutionEvent event) throws ExecutionException { final IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event); final IEditorPart activeEditor = window.getActivePage().getActiveEditor(); ActivitiDiagramEditor editor = (ActivitiDiagramEditor) activeEditor; final IDiagramTypeProvider pro = editor.getDiagramTypeProvider(); final Diagram diagram = pro.getDiagram(); final ProcessValidator processValidator = (ProcessValidator) ExtensionPointUtil.getProcessValidator(PluginConstants.VALIDATOR_ID); processValidator.validateDiagram(diagram, new NullProgressMonitor());