* @generated
*/
public void run() {
IWorkbenchPart workbenchPart = page.getActivePart();
if (workbenchPart instanceof IDiagramWorkbenchPart) {
final IDiagramWorkbenchPart part = (IDiagramWorkbenchPart) workbenchPart;
try {
new WorkspaceModifyDelegatingOperation(
new IRunnableWithProgress() {
public void run(IProgressMonitor monitor)
throws InterruptedException,
InvocationTargetException {
runValidation(part.getDiagramEditPart(),
part.getDiagram());
}
}).run(new NullProgressMonitor());
} catch (Exception e) {
DispelDiagramEditorPlugin.getInstance().logError(
"Validation action failed", e); //$NON-NLS-1$