Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Validate diagram programmatically(Validate diagram programmatically)
Validate diagram programmatically [message #1435201] Wed, 01 October 2014 06:38 Go to next message
VVasanth Kumar is currently offline VVasanth KumarFriend
Messages: 13
Registered: July 2012
Junior Member
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 09:20 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
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
Previous Topic:Creating a child element with fixed position inside an element
Next Topic:Reuse tab Semantic in TreeItem
Goto Forum:
  


Current Time: Thu Apr 25 08:17:55 GMT 2024

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

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

Back to the top