Skip to content

Update icon of custom view #3476

@k-spa

Description

@k-spa

Hi,

we have developed several internal Eclipse views in our company. With the ongoing switch from .png to .svg icons, we decided to give those views a design overhaul and also updated their icons.

But when testing the updated views, we discovered some odd issues with their icons:

  • When a view's plugin doesn't ship the original icon anymore, upon Eclipse startup the view icon is replaced with a red square. As soon as the view is selected, the new icon is being shown. But that new icon doesn't seem to be persisted, because as soon as Eclipse restarts, the red square is back. Also, a log entry can be seen that loading the old icon failed.
  • When a view's plugin ships both the old and the new icon, the behaviour is identical, just with the old icon instead of the red square.

I did some research and found old discussions on the topic (e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=430090, https://www.eclipse.org/forums/index.php/t/1106501/)

What is the recommended way to update a view's icon? Is there already some solution for the issues discussed above or can we implement a workaround (e.g. setting the icon in code)?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions