Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replaced imageDescriptors [IDE-793] #231

Closed
wants to merge 2 commits into from
Closed

Conversation

acke
Copy link
Contributor

@acke acke commented Dec 2, 2024

Description

The project and file icons now shows as they should.

image

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@acke acke requested a review from a team as a code owner December 2, 2024 10:29
@acke acke changed the title fix: replaced imageDescriptors fix: replaced imageDescriptors [IDE-793] Dec 2, 2024
Comment on lines +26 to +29
public static final ImageDescriptor PROJECT = Activator
.getImageDescriptor("platform:/plugin/org.eclipse.ui.ide/icons/full/obj16/prj_obj.png");
public static final ImageDescriptor FILE = Activator
.getImageDescriptor("platform:/plugin/org.eclipse.ui.genericeditor/icons/full/obj16/generic_editor.png");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes the issue, but what if we have a file icon that is not the generic editor one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. a Java file, or a Python file when PyDev is installed.

Copy link
Contributor Author

@acke acke Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we keep the original logic, but replace the return null, with return SnykIcons.PROJECT for project nodes and SnykIcons.FILE for file nodes?

@acke acke closed this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants