-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3677] Remove CustomizableProperties from legacy layout engine
Bug: #3677 Signed-off-by: Guillaume Coutable <[email protected]>
- Loading branch information
1 parent
d70c426
commit 4be44b4
Showing
12 changed files
with
49 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...diagrams/src/main/java/org/eclipse/sirius/components/diagrams/CustomizableProperties.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...participants/representation/DiagramCustomizedPropertiesAttributeMigrationParticipant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2024 Obeo. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Obeo - initial API and implementation | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.sirius.web.application.editingcontext.migration.participants.representation; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import com.fasterxml.jackson.databind.node.ObjectNode; | ||
|
||
import org.eclipse.sirius.components.collaborative.representations.migration.IRepresentationMigrationParticipant; | ||
import org.springframework.stereotype.Service; | ||
|
||
/** | ||
* Remove the customizedProperties from node. | ||
* | ||
* @author gcoutable | ||
*/ | ||
@Service | ||
public class DiagramCustomizedPropertiesAttributeMigrationParticipant implements IRepresentationMigrationParticipant { | ||
|
||
public static final String CUSTOMIZED_PROPERTIES = "customizedProperties"; | ||
|
||
@Override | ||
public String getVersion() { | ||
return "2024.11.0-202409231055"; | ||
} | ||
|
||
@Override | ||
public String getKind() { | ||
return "siriusComponents://representation?type=Diagram"; | ||
} | ||
|
||
@Override | ||
public void replaceJsonNode(ObjectNode root, String currentAttribute, JsonNode currentValue) { | ||
if (currentAttribute.equals(CUSTOMIZED_PROPERTIES)) { | ||
root.remove(CUSTOMIZED_PROPERTIES); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters