Skip to main content



      Home
Home » Modeling » Graphiti » Image doesn't load in editor
Image doesn't load in editor [message #1841871] Tue, 01 June 2021 12:29
Eclipse UserFriend
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 14:14] by Moderator

Previous Topic:Changing gradient background color during runtime
Next Topic:Select pictogram element in editor on add
Goto Forum:
  


Current Time: Mon Apr 21 06:43:32 EDT 2025

Powered by FUDForum. Page generated in 0.03153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top