 |
Edit OCL-code in noteIf you add an OCL-expression to a diagram all you have to do is to embed the OCL-expression in curly braces in a note. |
 |
Start OCL-Editor from browserIf you want to use the OCL-editor, you have to use the context menu on a class. This is possible both in the browser and with selected classes in
a diagram. The context menu contains two entries specific for our AddIn: "check OCL" and "edit OCL". |
 |
Start OCL-editor from diagramThe OCL-editor may also be invoked from a class diagram. |
 |
OCL-editorOnce the editor is open you have a powerful editing component available
with all expected features like syntax highlighting, search and replace and unlimited undo/redo. |
 |
Checking codeA check of the code can be started at any time by pressing a shortcut key. When the code is saved, it is also implicitly checked. |
 |
Trigger OCL-code check in browserA check of the OCL code can be triggered for one or more selected classes in the browser. |
 |
Trigger OCL-code check in class diagramA check of the OCL code can be triggered for one or more selected classes in a class diagram. |
 |
Trigger check on class diagramAll classes on a class diagram can be checked at once. |
 |
Trigger check on all OCL expressions in the modelAll OCL expressions in the model can be checked at once. This ensures the consistency between OCL code and the model. |
 |
Display Results of a checkWhenever a check is triggered outside the OCL editor, the result is displayed in a separate window. The OCL-expressions are shown in a tree-like structure sorted according to their context and the type of expression. Alternatively you can display all expressions or only those that contain errors. A double click on an error node immediately launches the OCL editor and places the cursor on the offending element. |
 |
Export OCL-expressionsThe OCL expressions contained in a model can be exported to an XML-file. An XSL-file may be applied automatically to the exported file. This enables the easy publication of the OCL expressions to your whole team and protects your investment. |