|
Re: Validate diagram programmatically [message #1440365 is a reply to message #1435201] |
Wed, 08 October 2014 09:20 |
|
Hello,
You can perform a validation programmatically using the ValidateAction
class. Here is a sample:
IEditorPart editorPart =
DialectUIManager.INSTANCE.openEditor(session, diagram, new
NullProgressMonitor());
WorkbenchPartDescriptor workbenchPartDescriptor = new
WorkbenchPartDescriptor(editorPart.getSite().getId(),
editorPart.getClass(), editorPart.getSite().getPage());
ValidateAction va = new ValidateAction(workbenchPartDescriptor);
va.run();
Regards,
Steve
Le 01/10/2014 08:38, VVasanth Kumar a écrit :
> Hi,
>
> I would like to understand is it possible to perform validation in
> Sirius diagram programmatically.
>
> Is there any apis available in DialectManager/DialectUIManager that I
> can use to validate the diagram?
>
> Or is it possible to use 'External Java Action' in Audit expression?
>
> Request your kind help!
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.05578 seconds