diff options
| author | Pierre-Charles David | 2016-05-31 09:33:19 +0000 |
|---|---|---|
| committer | Pierre-Charles David | 2016-05-31 09:33:21 +0000 |
| commit | c58ff14f93bc10fc015471ed66db0db6490a818b (patch) | |
| tree | 463c52f140b59f57ced916407a823fcf9ee2afc6 | |
| parent | 3f662b09b539c8ca15961e8fcd88658f74dd5b5f (diff) | |
| download | org.eclipse.sirius-c58ff14f93bc10fc015471ed66db0db6490a818b.tar.gz org.eclipse.sirius-c58ff14f93bc10fc015471ed66db0db6490a818b.tar.xz org.eclipse.sirius-c58ff14f93bc10fc015471ed66db0db6490a818b.zip | |
Bug: 490604
Change-Id: If2da8efc9a708d7fc00ff8b623fca561c8fdcbc8
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
2 files changed, 15 insertions, 0 deletions
diff --git a/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.html b/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.html index b10c8966c1..e0a256d433 100644 --- a/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.html +++ b/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.html @@ -991,8 +991,16 @@ <p>Conditional styles make it possible to support different graphical aspects for a single properties view element. The actual style used to render an element is determined dynamically depending on the current state of the models elements.</p> <p>To use conditional style, you must add one or several conditional styles. Each conditional style is associated to a condition specified as a predicate. If there are conditional styles on a properties view element, their conditions are tested in their order of appearance in the description. The first one for which the condition is true is selected. If none of the conditional styles condition is true, the default style is used instead.</p> <h2 id="validation_rules">Validation rules</h2> + <p>There are three kind of validation rules that can be specified. The main difference between the various kind of validation rules available is the location of the validation messages (on a page, a group or a widget). All the validation rules can contains audits used to determine if the validation rule has been broken thanks to an + <code>auditExpression</code> which should return a boolean indicating if the validation of the rule is a success. The validation rules can also contain fixes in order to fix the issue found. Those validation fixes have a name and a fix expression which will be executed once the end user selects a quick fix. The fix expression does not have to return anything. All of those expressions have access to the variables + <code>self</code>, the result of the semantic candidate expression of the page or group and + <code>input</code> the input of the view. + </p> <h3 id="page_semantic_validation_rule">Page semantic validation rule</h3> + <p>The page semantic validation rule is used to define a validation rule linked to a page.</p> <h3 id="group_semantic_validation_rule">Group semantic validation rule</h3> + <p>The group semantic validation rule is used to define a validation rule linked to a group.</p> <h3 id="group_property_validation_rule">Group property validation rule</h3> + <p>The group property validation rule is used to define a validation rule linked to a specific widget.</p> </body> </html>
\ No newline at end of file diff --git a/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.textile b/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.textile index dd90495bc6..2cd860b007 100644 --- a/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.textile +++ b/incubation/org.eclipse.sirius.editor.properties/doc/specifier/Properties_View_Description.textile @@ -440,9 +440,16 @@ To use conditional style, you must add one or several conditional styles. Each c h2(#validation_rules). Validation rules +There are three kind of validation rules that can be specified. The main difference between the various kind of validation rules available is the location of the validation messages (on a page, a group or a widget). All the validation rules can contains audits used to determine if the validation rule has been broken thanks to an @auditExpression@ which should return a boolean indicating if the validation of the rule is a success. The validation rules can also contain fixes in order to fix the issue found. Those validation fixes have a name and a fix expression which will be executed once the end user selects a quick fix. The fix expression does not have to return anything. All of those expressions have access to the variables @self@, the result of the semantic candidate expression of the page or group and @input@ the input of the view. + h3(#page_semantic_validation_rule). Page semantic validation rule +The page semantic validation rule is used to define a validation rule linked to a page. + h3(#group_semantic_validation_rule). Group semantic validation rule +The group semantic validation rule is used to define a validation rule linked to a group. + h3(#group_property_validation_rule). Group property validation rule +The group property validation rule is used to define a validation rule linked to a specific widget. |
