Validate diagram programmatically [message #1435201] |
Wed, 01 October 2014 02:38  |
Eclipse User |
|
|
|
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!
|
|
|
Re: Validate diagram programmatically [message #1440365 is a reply to message #1435201] |
Wed, 08 October 2014 05:20  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.77101 seconds