Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides')
-rw-r--r--plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/expected.odesign61
-rw-r--r--plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/input.odesign234
-rw-r--r--plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/processed.odesign32
3 files changed, 327 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/expected.odesign b/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/expected.odesign
new file mode 100644
index 0000000000..5fb78adc29
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/expected.odesign
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="ASCII"?>
+<properties:ViewExtensionDescription xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0">
+ <categories name="Default">
+ <pages name="OverridesDefaultRulesPage" labelExpression="OverridesDefaultRulesPage"/>
+ <pages name="OverridesDefaultPageAndExtendsAnotherDefaultPage" labelExpression="OverridesDefaultPage" domainClass="" semanticCandidateExpression="var:self" preconditionExpression="" groups="//@categories.0/@groups.0" filterGroupsFromExtendedPageExpression="aql:group.name.contains('FilterExtended')" filterValidationRulesFromExtendedPageExpression="aql:validationRule.name.contains('FilterExtended')">
+ <validationSet>
+ <semanticValidationRules name="DefaultSemanticValidationRule" level="ERROR" targetClass="ecore.EClass">
+ <audits auditExpression="aql:false"/>
+ </semanticValidationRules>
+ <semanticValidationRules name="AnotherDefaultSemanticValidationRule" level="ERROR" targetClass="ecore.EClass">
+ <audits auditExpression="aql:false"/>
+ </semanticValidationRules>
+ </validationSet>
+ </pages>
+ <pages name="AnotherPageWithDefaultGroup" labelExpression="Another Page" domainClass="ecore.EClass" semanticCandidateExpression="var:self" groups="//@categories.0/@groups.0"/>
+ <pages name="AnotherDefaultPage" labelExpression="Another Default Page" domainClass="ecore.EClass" semanticCandidateExpression="var:self" groups="//@categories.0/@groups.2" filterValidationRulesFromExtendedPageExpression="">
+ <validationSet>
+ <semanticValidationRules name="AnotherDefaultSemanticValidationRule" level="ERROR" targetClass="ecore.EClass">
+ <audits auditExpression="aql:false"/>
+ </semanticValidationRules>
+ <semanticValidationRules name="FilterExtendedDefaultSemanticValidationRule" level="ERROR" targetClass="ecore.EClass">
+ <audits auditExpression="aql:false"/>
+ </semanticValidationRules>
+ </validationSet>
+ </pages>
+ <groups name="OverridesDefaultGroup" label="" labelExpression="OverridesDefaultGroup" semanticCandidateExpression="var:self" filterControlsFromExtendedGroupExpression="">
+ <controls xsi:type="properties:TextDescription" name="OverridesDefaultText" labelExpression="OverridesDefaultText" isEnabledExpression="" valueExpression="aql:self.name"/>
+ <controls xsi:type="properties:LabelDescription" name="OverridesDefaultLabel" label="" labelExpression="OverridesDefaultLabel" valueExpression="aql:self.name"/>
+ <controls xsi:type="properties:ButtonDescription" name="OverridesDefaultButton" labelExpression="OverridesDefaultButton"/>
+ <controls xsi:type="properties:CheckboxDescription" name="OverridesDefaultCheckbox" labelExpression="OverridesDefaultCheckbox"/>
+ <controls xsi:type="properties:SelectDescription" name="OverridesDefaultSelect" labelExpression="OverridesDefaultSelect" valueExpression="aql:self.name" candidatesExpression="aql:self" candidateDisplayExpression="aql:candidate.name"/>
+ <controls xsi:type="properties:TextAreaDescription" name="OverridesDefaultTextArea" labelExpression="OverridesDefaultTextArea" valueExpression="aql:self.name"/>
+ <controls xsi:type="properties:ListDescription" name="OverridesDefaultList" label="" labelExpression="OverridesDefaultList" valueExpression="" displayExpression="" filterConditionalStylesFromExtendedListExpression=""/>
+ <controls xsi:type="properties:HyperlinkDescription" name="OverridesDefaultHyperlink" label="" labelExpression="OverridesDefaultHyperlink" valueExpression="aql:self" displayExpression="aql:value.name" filterConditionalStylesFromExtendedHyperlinkExpression="" filterActionsFromExtendedHyperlinkExpression=""/>
+ <controls xsi:type="properties:RadioDescription" name="OverridesDefaultRadio" label="" labelExpression="OverridesDefaultRadio" candidatesExpression="aql:Sequence{'Radio1','Radio2','Radio3'}" candidateDisplayExpression="aql:candidate"/>
+ </groups>
+ <groups name="FilterOverriddenGroup" label="" labelExpression="FilterOverriddenGroup" domainClass="" semanticCandidateExpression="var:self"/>
+ <groups name="FilterExtendedGroup" label="" labelExpression="FilterOverridenGroup" semanticCandidateExpression="var:self"/>
+ </categories>
+ <categories name="Overrides">
+ <overrides xsi:type="properties:GroupOverrideDescription" name="OverridesDefaultGroup" labelExpression="OverridesDefaultGroup" filterControlsFromExtendedGroupExpression="" filterControlsFromOverriddenGroupExpression="aql:control.name.contains('Filter')"/>
+ <overrides xsi:type="properties:PageOverrideDescription" name="OverridesDefaultRulesPage" labelExpression="OverridesDefaultRulesPage"/>
+ <overrides xsi:type="properties:GroupOverrideDescription" name="OverridesDefaultRulesGroup" labelExpression="OverridesDefaultRulesGroup"/>
+ <overrides xsi:type="properties:TextOverrideDescription" name="OverridesDefaultText" labelExpression="OverridesDefaultText"/>
+ <overrides xsi:type="properties:LabelOverrideDescription" name="OverridesDefaultLabel" labelExpression="OverridesDefaultLabel"/>
+ <overrides xsi:type="properties:ButtonOverrideDescription" name="OverridesDefaultButton" labelExpression="OverridesDefaultButton"/>
+ <overrides xsi:type="properties:CheckboxOverrideDescription" name="OverridesDefaultCheckbox" labelExpression="OverridesDefaultCheckbox"/>
+ <overrides xsi:type="properties:SelectOverrideDescription" name="OverridesDefaultSelect" labelExpression="OverridesDefaultSelect" candidatesExpression="aql:self" candidateDisplayExpression="aql:candidate.name"/>
+ <overrides xsi:type="properties:TextAreaOverrideDescription" name="OverridesDefaultTextArea" labelExpression="OverridesDefaultTextArea"/>
+ <overrides xsi:type="properties:ListOverrideDescription" name="OverridesDefaultList" labelExpression="OverridesDefaultList"/>
+ <overrides xsi:type="properties:HyperlinkOverrideDescription" name="OverridesDefaultHyperlink" label="" labelExpression="OverridesDefaultHyperlink" filterActionsFromExtendedHyperlinkExpression=""/>
+ <overrides xsi:type="properties:RadioOverrideDescription" name="OverridesDefaultRadio" label="" labelExpression="OverridesDefaultRadio"/>
+ <overrides xsi:type="properties:PageOverrideDescription" name="OverridesDefaultPageAndExtendsAnotherDefaultPage" labelExpression="OverridesDefaultPage" domainClass="" semanticCandidateExpression="var:self" preconditionExpression="" filterGroupsFromExtendedPageExpression="aql:group.name.contains('FilterExtended')" filterValidationRulesFromExtendedPageExpression="aql:validationRule.name.contains('FilterExtended')" filterGroupsFromOverriddenPageExpression="aql:group.name.contains('FilterOverridden')" filterValidationRulesFromOverriddenPageExpression="aql:validationRule.name.contains('FilterOverridden')">
+ <validationSet>
+ <semanticValidationRules name="AnotherDefaultSemanticValidationRule" level="ERROR" targetClass="ecore.EClass">
+ <audits auditExpression="aql:false"/>
+ </semanticValidationRules>
+ </validationSet>
+ </overrides>
+ </categories>
+</properties:ViewExtensionDescription> \ No newline at end of file
diff --git a/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/input.odesign b/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/input.odesign
new file mode 100644
index 0000000000..969442420a
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/input.odesign
@@ -0,0 +1,234 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<description:Group
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:description="http://www.eclipse.org/sirius/description/1.1.0"
+ xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0"
+ name="My"
+ version="12.0.0.201702091400">
+ <ownedViewpoints
+ name="TestOverrides"/>
+ <extensions
+ xsi:type="properties:ViewExtensionDescription">
+ <categories
+ name="Default">
+ <pages
+ labelExpression="Pikachu">
+ <extends
+ href="../../../../plugin/org.eclipse.sirius.properties.core/model/properties.odesign#//@extensions.0/@categories.0/@pages.0"/>
+ </pages>
+ <pages
+ name="DefaultPage"
+ labelExpression="Default Page"
+ domainClass="ecore.EClass"
+ semanticCandidateExpression="var:self"
+ groups="//@extensions.0/@categories.0/@groups.0 //@extensions.0/@categories.0/@groups.1">
+ <validationSet>
+ <semanticValidationRules
+ name="DefaultSemanticValidationRule"
+ level="ERROR"
+ targetClass="ecore.EClass">
+ <audits
+ auditExpression="aql:false"/>
+ </semanticValidationRules>
+ <semanticValidationRules
+ name="FilterOverriddenDefaultSemanticValidationRule"
+ level="ERROR"
+ targetClass="ecore.EClass">
+ <audits
+ auditExpression="aql:false"/>
+ </semanticValidationRules>
+ </validationSet>
+ </pages>
+ <pages
+ name="AnotherPageWithDefaultGroup"
+ labelExpression="Another Page"
+ domainClass="ecore.EClass"
+ semanticCandidateExpression="var:self"
+ groups="//@extensions.0/@categories.0/@groups.0"/>
+ <pages
+ name="AnotherDefaultPage"
+ labelExpression="Another Default Page"
+ domainClass="ecore.EClass"
+ semanticCandidateExpression="var:self"
+ groups="//@extensions.0/@categories.0/@groups.2"
+ filterValidationRulesFromExtendedPageExpression="">
+ <validationSet>
+ <semanticValidationRules
+ name="AnotherDefaultSemanticValidationRule"
+ level="ERROR"
+ targetClass="ecore.EClass">
+ <audits
+ auditExpression="aql:false"/>
+ </semanticValidationRules>
+ <semanticValidationRules
+ name="FilterExtendedDefaultSemanticValidationRule"
+ level="ERROR"
+ targetClass="ecore.EClass">
+ <audits
+ auditExpression="aql:false"/>
+ </semanticValidationRules>
+ </validationSet>
+ </pages>
+ <groups
+ name="DefaultGroup"
+ label=""
+ labelExpression="Default Group"
+ semanticCandidateExpression="var:self">
+ <controls
+ xsi:type="properties:TextDescription"
+ name="DefaultText"
+ labelExpression="Default Text"
+ isEnabledExpression=""
+ valueExpression="aql:self.name"/>
+ <controls
+ xsi:type="properties:LabelDescription"
+ name="DefaultLabel"
+ label=""
+ labelExpression="Default Label"
+ valueExpression="aql:self.name"/>
+ <controls
+ xsi:type="properties:ButtonDescription"
+ name="DefaultButton"
+ labelExpression="DefaultButton"/>
+ <controls
+ xsi:type="properties:CheckboxDescription"
+ name="DefaultCheckbox"
+ labelExpression="DefaultCheckbox"/>
+ <controls
+ xsi:type="properties:SelectDescription"
+ name="DefaultSelect"
+ labelExpression="DefaultSelect"
+ valueExpression="aql:self.name"/>
+ <controls
+ xsi:type="properties:TextAreaDescription"
+ name="DefaultTextArea"
+ labelExpression="DefaultTextArea"
+ valueExpression="aql:self.name"/>
+ <controls
+ xsi:type="properties:ListDescription"
+ name="DefaultList"
+ label=""
+ labelExpression="DefaultList"
+ valueExpression=""
+ displayExpression=""
+ filterConditionalStylesFromExtendedListExpression=""/>
+ <controls
+ xsi:type="properties:HyperlinkDescription"
+ name="DefaultHyperlink"
+ labelExpression="DefaultHyperlink"
+ valueExpression="aql:self"
+ displayExpression="aql:value.name"
+ filterConditionalStylesFromExtendedHyperlinkExpression=""/>
+ <controls
+ xsi:type="properties:RadioDescription"
+ name="DefaultRadio"
+ labelExpression="DefaultRadio"
+ candidatesExpression="aql:Sequence{'Radio1','Radio2','Radio3'}"
+ candidateDisplayExpression="aql:candidate"/>
+ <controls
+ xsi:type="properties:TextDescription"
+ name="FilterText"
+ label=""
+ labelExpression="FilterText"
+ valueExpression="aql:self.name"/>
+ </groups>
+ <groups
+ name="FilterOverriddenGroup"
+ label=""
+ labelExpression="FilterOverriddenGroup"
+ domainClass=""
+ semanticCandidateExpression="var:self"/>
+ <groups
+ name="FilterExtendedGroup"
+ label=""
+ labelExpression="FilterOverridenGroup"
+ semanticCandidateExpression="var:self"/>
+ </categories>
+ <categories
+ name="Overrides">
+ <overrides
+ xsi:type="properties:GroupOverrideDescription"
+ name="OverridesDefaultGroup"
+ labelExpression="OverridesDefaultGroup"
+ filterControlsFromExtendedGroupExpression=""
+ overrides="//@extensions.0/@categories.0/@groups.0"
+ filterControlsFromOverriddenGroupExpression="aql:control.name.contains('Filter')"/>
+ <overrides
+ xsi:type="properties:PageOverrideDescription"
+ name="OverridesDefaultRulesPage"
+ labelExpression="OverridesDefaultRulesPage"
+ overrides="//@extensions.0/@categories.0/@pages.0"/>
+ <overrides
+ xsi:type="properties:GroupOverrideDescription"
+ name="OverridesDefaultRulesGroup"
+ labelExpression="OverridesDefaultRulesGroup">
+ <overrides
+ href="../../../../plugin/org.eclipse.sirius.properties.core/model/properties.odesign#//@extensions.0/@categories.0/@groups.0"/>
+ </overrides>
+ <overrides
+ xsi:type="properties:TextOverrideDescription"
+ name="OverridesDefaultText"
+ labelExpression="OverridesDefaultText"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.0"/>
+ <overrides
+ xsi:type="properties:LabelOverrideDescription"
+ name="OverridesDefaultLabel"
+ labelExpression="OverridesDefaultLabel"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.1"/>
+ <overrides
+ xsi:type="properties:ButtonOverrideDescription"
+ name="OverridesDefaultButton"
+ labelExpression="OverridesDefaultButton"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.2"/>
+ <overrides
+ xsi:type="properties:CheckboxOverrideDescription"
+ name="OverridesDefaultCheckbox"
+ labelExpression="OverridesDefaultCheckbox"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.3"/>
+ <overrides
+ xsi:type="properties:SelectOverrideDescription"
+ name="OverridesDefaultSelect"
+ labelExpression="OverridesDefaultSelect"
+ candidatesExpression="aql:self"
+ candidateDisplayExpression="aql:candidate.name"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.4"/>
+ <overrides
+ xsi:type="properties:TextAreaOverrideDescription"
+ name="OverridesDefaultTextArea"
+ labelExpression="OverridesDefaultTextArea"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.5"/>
+ <overrides
+ xsi:type="properties:ListOverrideDescription"
+ name="OverridesDefaultList"
+ labelExpression="OverridesDefaultList"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.6"/>
+ <overrides
+ xsi:type="properties:HyperlinkOverrideDescription"
+ name="OverridesDefaultHyperlink"
+ label=""
+ labelExpression="OverridesDefaultHyperlink"
+ filterActionsFromExtendedHyperlinkExpression=""
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.7"/>
+ <overrides
+ xsi:type="properties:RadioOverrideDescription"
+ name="OverridesDefaultRadio"
+ label=""
+ labelExpression="OverridesDefaultRadio"
+ overrides="//@extensions.0/@categories.0/@groups.0/@controls.8"/>
+ <overrides
+ xsi:type="properties:PageOverrideDescription"
+ name="OverridesDefaultPageAndExtendsAnotherDefaultPage"
+ labelExpression="OverridesDefaultPage"
+ domainClass=""
+ preconditionExpression=""
+ extends="//@extensions.0/@categories.0/@pages.3"
+ filterGroupsFromExtendedPageExpression="aql:group.name.contains('FilterExtended')"
+ filterValidationRulesFromExtendedPageExpression="aql:validationRule.name.contains('FilterExtended')"
+ overrides="//@extensions.0/@categories.0/@pages.1"
+ filterGroupsFromOverriddenPageExpression="aql:group.name.contains('FilterOverridden')"
+ filterValidationRulesFromOverriddenPageExpression="aql:validationRule.name.contains('FilterOverridden')"/>
+ </categories>
+ </extensions>
+</description:Group>
diff --git a/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/processed.odesign b/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/processed.odesign
new file mode 100644
index 0000000000..ff86b45142
--- /dev/null
+++ b/plugins/org.eclipse.sirius.tests.ui.properties/data/preprocessor/overrides/processed.odesign
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="ASCII"?>
+<properties:ViewExtensionDescription
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:properties="http://www.eclipse.org/sirius/properties/1.0.0"
+ name="Properties">
+ <categories
+ name="Default">
+ <pages name="OverridesDefaultPage"
+ labelExpression="OverridesDefaultPageLabelExpression"
+ domainClass="OverridesDefaultPageDomainClass"
+ semanticCandidateExpression="DefaultPageSemanticCandidateExpression"
+ preconditionExpression="OverridesDefaultPagePreconditionExpression"
+ filterGroupsFromExtendedPageExpression="DefaultPageFilterGroupsFromExtendedPageExpression"
+ filterValidationRulesFromExtendedPageExpression="DefaultPageFilterValidationRulesFromExtendedPageExpression">
+ <validationSet>
+ <semanticValidationRules
+ name="DefaultPageSemanticValidationRuleId"
+ label="DefaultPageSemanticValidationRuleLabel"
+ message="DefaultPageSemanticValidationRuleMessage"
+ targetClass="DefaultPageSemanticValidationRuleTargetClass"/>
+ <semanticValidationRules
+ name="AnotherDefaultPageSemanticValidationRuleId"
+ label="AnotherDefaultPageSemanticValidationRuleLabel"
+ message="AnotherDefaultPageSemanticValidationRuleMessage"
+ targetClass="AnotherDefaultPageSemanticValidationRuleTargetClass"/>
+ </validationSet>
+ </pages>
+ </categories>
+ <categories
+ name="Overrides"/>
+</properties:ViewExtensionDescription>

Back to the top