How to use a custom icons? [message #1734135] |
Sat, 04 June 2016 13:48  |
Eclipse User |
|
|
|
I need some help to load a custom image in my CustomShapeFeatureContainer.
I did not found out how to register custom icons located in the /icons/large/ folder.
I guessed the CustomTaskImageProvider.registerAvailableImages(); automatically registers all images in this folder. But it seems not to be the case.
What is necessary to be able to load a icon with something like this:
img = CustomTaskImageProvider.createImage(customTaskDescriptor, ga,
"inbox.png", 24, 24);
All my attempts resulted in a red-box-icon which seems to indicate that I have not registered my image to Eclipse.
===
Ralph
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03594 seconds