Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Image doesn't load in editor
Image doesn't load in editor [message #1841871] Tue, 01 June 2021 16:29
Alex Kravets is currently offline Alex KravetsFriend
Messages: 561
Registered: November 2009
Senior Member
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

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


Current Time: Fri Dec 03 06:30:03 GMT 2021

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

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

Back to the top