Skip to main content



      Home
Home » Eclipse Projects » Sirius » Validate diagram programmatically(Validate diagram programmatically)
Validate diagram programmatically [message #1435201] Wed, 01 October 2014 02:38 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Creating a child element with fixed position inside an element
Next Topic:Reuse tab Semantic in TreeItem
Goto Forum:
  


Current Time: Sun Jun 22 20:14:21 EDT 2025

Powered by FUDForum. Page generated in 0.77101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top