Skip to content

Commit

Permalink
remove old _appliedStereotypeIds key as it's now part of the native e…
Browse files Browse the repository at this point in the history
…xport
  • Loading branch information
Doris Lam committed Aug 14, 2023
1 parent ee115b1 commit 4e23945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/openmbee/mdk/emf/EMFExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ private static void dumpUMLPackageLiterals() {
}

private enum Processor {
APPLIED_STEREOTYPE(
/*APPLIED_STEREOTYPE(
(element, project, objectNode) -> {
ArrayNode applied = StereotypesHelper.getStereotypes(element).stream().map(stereotype -> TextNode.valueOf(getEID(stereotype))).collect(MDKCollectors.toArrayNode());
objectNode.set(MDKConstants.APPLIED_STEREOTYPE_IDS_KEY, applied);
return objectNode;
},
Type.PRE
),
),*/
ATTACHED_PROJECT(
(element, project, objectNode) -> ProjectUtilities.isElementInAttachedProject(element) && ProjectUtilities.getAttachedProjects(project.getPrimaryProject()).stream().noneMatch(iAttachedProject -> ProjectUtilitiesInternal.distanceFromProject(iAttachedProject) == 1 && ProjectUtilities.isAttachedProjectRoot(element, iAttachedProject)) ? null : objectNode,
Type.PRE
Expand Down

0 comments on commit 4e23945

Please sign in to comment.