Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
* update
Browse files Browse the repository at this point in the history
  • Loading branch information
festo-i40 committed Nov 8, 2023
1 parent f51bf5e commit cb91a46
Show file tree
Hide file tree
Showing 4 changed files with 627 additions and 101 deletions.
23 changes: 19 additions & 4 deletions src/AasxPackageLogic/DispEditHelperEntities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2301,13 +2301,27 @@ public void DisplayOrEditAasEntityConceptDescription(
relatedReferable: cd, superMenu: superMenu);
};

// check if to display special order for SAMM
var specialOrderSAMM = DispEditHelperSammModules.CheckReferableForSammExtensionType(cd) != null;
if (specialOrderSAMM)
// experimental: SMT elements

Action lambdaSmtExt = () =>
{
DisplayOrEditEntitySmtExtensions(
env, stack, cd.Extensions,
(v) => { cd.Extensions = v; },
relatedReferable: cd, superMenu: superMenu);
};

// check if to display special order for SAMM, SMT
var specialOrderSAMM_SMT =
DispEditHelperSammModules.CheckReferableForSammExtensionType(cd) != null
|| DispEditHelperExtensions.CheckReferableForSmtExtensionType(cd) != null;

if (specialOrderSAMM_SMT)
{
lambdaIdf();
lambdaRf(true);
lambdaSammExt();
lambdaSmtExt();

this.AddGroup(stack, "Continue Referable:", levelColors.MainSection);
lambdaIsCaseOf();
Expand All @@ -2326,7 +2340,8 @@ public void DisplayOrEditAasEntityConceptDescription(
lambdaIsCaseOf();
lambdaEDS(false);
lambdaSammExt();
}
lambdaSmtExt();
}
}

public void DisplayOrEditAasEntityValueReferencePair(
Expand Down
Loading

0 comments on commit cb91a46

Please sign in to comment.