I'd like to add a ContainerShape on the top of my Shape.
I added image to ImageProvider and call it from my Feature, however, when I create diagram all I see is red square instead of the image as well as message in console
!MESSAGE Image with ID 'images.ColorIcon' is already registered
Here is the interesting part. The code in Feature where I add image is this
Image disabledImage = gaService.createImage(imageShape, ImageProvider.DEACTIVATED_ICON);
gaService.setLocationAndSize(disabledImage, (containerWidth - Constants.IMAGE_SIDE_SIZE) / 2, 9, 32, 32);
When I load instance of Eclipse and add Object from Palette, that's when red square appears. If I go directly into the code and change constant from ImageProvider to some other predefined constant, for example ImageProvider.COLOR_ICON, and add new object, then the image displays fine until I restart Eclipse, when all images become red and I get more logs
!ENTRY org.eclipse.graphiti.ui 4 0 2021-06-01 16:23:57.717
!MESSAGE Image with ID 'images.ColorIcon' is already registered
!ENTRY org.eclipse.graphiti.ui 4 0 2021-06-01 16:23:57.721
!MESSAGE Image with ID 'images.deactivated' is already registered
Any idea what am I doing wrong here?
[Updated on: Tue, 01 June 2021 18:14]
Report message to a moderator