diff --git a/mocha-common/build b/mocha-common/build index fa7fd4d..f21a73f 100755 --- a/mocha-common/build +++ b/mocha-common/build @@ -20,9 +20,10 @@ for p in $PROJECTS; do fi ./yaml2mcl --export-entities=output/$p.cs -o output/$p.mcl data/libraries/yaml/$p - if [ ! $? -eq 0 ]; then + Q=$? + if [ $Q -ne 0 ]; then echo "error MCX9911 : build failed" - exit + exit $Q fi done diff --git a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/Common.yaml b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/Common.yaml index 5db6fc3..6f9bfce 100644 --- a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/Common.yaml +++ b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/Common.yaml @@ -15,6 +15,8 @@ - globalIdentifier: '{8171ea52-22a3-4c75-b8a5-d418bc05fdeb}' defaultDataType: '&IDC_ElementContent;' label: 'Element Content' + displayOptions: + - instance: '&IDI_DisplayOption_Required;' - element: '&IDE_ElementContent_Definition;' name: element content definition diff --git a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ElementContentTaskStart.yaml b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ElementContentTaskStart.yaml new file mode 100644 index 0000000..de3e50b --- /dev/null +++ b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ElementContentTaskStart.yaml @@ -0,0 +1,36 @@ +# Copyright (C) 2025 Michael Becker +# +# This file is part of mocha-suv. +# +# mocha-suv is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# mocha-suv is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with mocha-suv. If not, see . + +- entityDefinitions: + - IDM_ElementContent_View_Start: '{633e1d6c-6afb-4412-bf04-3efcfc1c9b5d}' + + - IDM_ElementContent__respond_with__ElementContent_View: '{5abd08b9-739f-41a0-9fed-57ca7fc446a2}' + - IDMB_ElementContent__respond_with__ElementContent_View: '{990eac90-9d00-4bf2-bbca-3669124c6a71}' + +- library: '&IDL_MochaBaseSystem;' + instances: + - controlTransactionMethod: '&IDM_ElementContent_View_Start;' + buildsResponseWithBRMB: + - globalIdentifier: '&IDMB_ElementContent__respond_with__ElementContent_View;' + executesMethod: + - type: '&IDC_BuildUIResponseMethod;' + globalIdentifier: '&IDM_ElementContent__respond_with__ElementContent_View;' + forElementContentId: '&IDC_ElementContent;' + verb: 'respond with' + name: 'ElementContent View' + accessModifierId: '&IDI_AccessModifier_RootA2;' + usesExecutableReturningElement: '&IDE_ElementContent_View;' diff --git a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ViewElementContent.yaml b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ViewElementContent.yaml index 26fa736..79c01a8 100644 --- a/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ViewElementContent.yaml +++ b/mocha-common/data/libraries/yaml/net.alcetech.Mocha.System/005-UserInterface/Tasks/ElementContent/ViewElementContent.yaml @@ -1,9 +1,63 @@ - entityDefinitions: - IDI_Task_ViewElementContent: '{9c90e09a-2efc-4ebd-92e6-c0767ac3fbfd}' - IDE_ElementContent_View: '{e68bb6c4-29eb-4c77-908a-1b3793c952bc}' + + - IDE_ElementContent_Start: '{e06d81bd-e073-485f-954f-dda828cb8f30}' + - IDE_ElementContent_ViewStart: '{34b70102-757b-4da1-8101-f61c28c692f0}' - library: '&IDL_MochaBaseSystem;' instances: + + - element: '&IDE_ElementContent_Start;' + name: 'element content start' + processedByCTMethod: '&IDM_ElementContent_Edit_Start;' + elementContents: + - globalIdentifier: '{beb977e2-4d3c-4ca6-8682-ca316b6d7da2}' + defaultDataType: '&IDE_ElementContent_Select;' + layout: + - type: '&IDC_GroupLayout;' + globalIdentifier: '{525211e9-27cd-4344-9394-fac85e67b385}' + options: + - instance: '&IDI_GroupLayoutOption_FieldSet;' + displayOptions: + - instance: '&IDI_DisplayOption_ShowSubelementsVertically;' + - instance: '&IDI_DisplayOption_Singular;' + + - element: '&IDE_ElementContent_ViewStart;' + name: 'element content view start' + processedByCTMethod: + - globalIdentifier: '&IDM_ElementContent_View_Start;' + buildsResponseWithBRMB: + - globalIdentifier: '&IDMB_ElementContent__respond_with__ElementContent_View;' + executesMethod: + - type: '&IDC_BuildUIResponseMethod;' + globalIdentifier: '&IDM_ElementContent__respond_with__ElementContent_View;' + forElementContentId: '&IDC_ElementContent;' + verb: 'respond with' + name: 'ElementContent View' + accessModifierId: '&IDI_AccessModifier_RootA2;' + usesExecutableReturningElement: '&IDE_ElementContent_View;' + elementContents: + - globalIdentifier: '{8efa485d-57e5-4c8b-aed2-bcf4603b5e99}' + defaultDataType: '&IDE_ElementContent_Select;' + layout: + - type: '&IDC_GroupLayout;' + globalIdentifier: '{4cf0caff-419f-4c9b-be5c-acc1d0685456}' + options: + - instance: '&IDI_GroupLayoutOption_FieldSet;' + displayOptions: + - instance: '&IDI_DisplayOption_ShowSubelementsVertically;' + - instance: '&IDI_DisplayOption_Singular;' + + + # - element: '&IDE_ElementContent_Select;' + # name: 'ElementContent task start selection' + # elementContents: + # - globalIdentifier: '{7f04dd8c-3f20-4d23-8fb4-5b8c3e3d7ea2}' + # defaultDataType: '&IDC_ElementContent;' + # displayOptions: + # - instance: '&IDI_DisplayOption_Required;' + - sequenceTask: '&IDI_Task_ViewElementContent;' name: 'View Element Content' schedulable: no @@ -12,7 +66,7 @@ stepName: View Element Content showSpreadsheetButtonOnSelection: no taskCategory: '&IDI_TaskCategory_ElementContent;' - initiatingElement: '&IDE_ElementContent_View;' + initiatingElement: '&IDE_ElementContent_ViewStart;' - element: '&IDE_ElementContent_View;' name: view element content