-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
- I have checked that this bug has not yet been reported by someone else
- I have checked that this bug appears on Chrome
- I have specified the version :
- 2022.11.13
- I have specified my environment :
- my computer: macOS
Screenshots
Steps to reproduce
- Your SiriusWeb instance should not have the Domain package, only View package
- Create a View model
- Create a Diagram Description that applies on an existing class from a metamodel (not from a Domain)
- Create a valid Node that applies on an existing class from the same metamodel
- Create a Diagram from the Diagram Description
- Click on the diagram background: a creation tool is provided by default, based on the Diagram Description and the View.
Expected behavior
The canonical creation tool provided by default should have an icon, ideally the icon associated to the EClass/DomainClass.
Actual behavior
The canonical creation tool provided by default doesn't have any icon.
Help resources
The problem comes from ViewDiagramDescriptionConverter.java
. String NODE_CREATION_TOOL_ICON = "/img/Entity.svg";
& EDGE_CREATION_TOOL_ICON = "/img/Relation.svg";
refer to SVG coming from Domain package.
Solution proposed
-
String NODE_CREATION_TOOL_ICON = "/img/Entity.svg";
&EDGE_CREATION_TOOL_ICON = "/img/Relation.svg";
should refer to SVG from View package. -
Canonical creation tools should try to get icons associated to the EClass/DomainClass and fallback to a default icon on failure.