Skip to content

Add SVGs to org.eclipse.m2e.core.ui #1985

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Michael5601
Copy link

This PR adds SVGs for all icons in the bundle org.eclipse.m2e.core.ui except for the following as these do not exist as SVGs yet:

banner_lifecycleMappingPage.svg
banner_new_module.svg
banner_new_project.svg
banner_update_project.svg
m2eclipse48.svg

See also this PR for more information.

@HannesWell
Copy link
Contributor

Thanks for this PR. This particular change looks good. Out of curiosity, where did you get the icons from?
I think some the missing icons are contained in:

Do you plan to also contribute SVG images for the icons in?

  • org.eclipse.m2e.editor
  • org.eclipse.m2e.pde.ui

Some of them are probably just copies from the platform.
I also noticed that m2e still has plenty of gif icons, not only PNG. It would be great to get a replacement for them as well.

And last, but not least, @laeubi what's your opinion about keeping the old png/gif icons? For the Eclipse TLP we kept the icons for now in case some downstream plugins reference them e.g. via corresponding platform-plugin URLs etc. (as resources cannot be really hidden or somehow marked as internal).
For m2e I would be open to just remove the replaced icons immediately, without a deprecation period.
I assume m2e bundles are used less and if there are downstream consumers of the m2e icons, that cannot adapt to SVG immediately, they can still copy the old icons in their bundle.

@HannesWell HannesWell force-pushed the org.eclipse.m2e.core.ui.SVGs branch from be3918d to 6317a5d Compare May 13, 2025 19:10
Copy link

github-actions bot commented May 13, 2025

Test Results

0 files   -   324  0 suites   - 324   0s ⏱️ - 59m 5s
0 tests  -   689  0 ✅  -   665  0 💤  - 21  0 ❌  - 2 
0 runs   - 2 067  0 ✅  - 2 001  0 💤  - 63  0 ❌  - 2 

Results for commit 84bf792. ± Comparison against base commit 0f862e5.

♻️ This comment has been updated with latest results.

@laeubi
Copy link
Member

laeubi commented May 14, 2025

Some SVGs are also here:

https://github.com/eclipse-platform/eclipse.platform.images/tree/master/org.eclipse.images/eclipse-svg/org.eclipse.m2e.core.ui/icons

beside that, m2e has to wait for the next release before we can start using SVG icons (that's why the build currently fails) but then I don't see why we need to retain old image formats.

@Michael5601
Copy link
Author

Out of curiosity, where did you get the icons from?

I got them from the images repository. @laeubi also posted the link:
https://github.com/eclipse-platform/eclipse.platform.images/tree/master/org.eclipse.images/eclipse-svg/org.eclipse.m2e.core.ui/icons

Do you plan to also contribute SVG images for the icons in?

  • org.eclipse.m2e.editor
  • org.eclipse.m2e.pde.ui

Yes I do. I maintain a list of missing SVGs that I want to contribute. I will add the two bundles you mentioned to the list.

I also noticed that m2e still has plenty of gif icons, not only PNG. It would be great to get a replacement for them as well.

I also mentioned the amount of GIFs that is still used in Eclipse (mostly example/test bundles with low prio) in the above list. I have to check how much effort it will be to create them. Maybe I restrain this task to only creating the most important icons.

@HannesWell
Copy link
Contributor

beside that, m2e has to wait for the next release before we can start using SVG icons (that's why the build currently fails) but then I don't see why we need to retain old image formats.

That's now available.

For m2e I would be open to just remove the replaced icons immediately, without a deprecation period.
I assume m2e bundles are used less and if there are downstream consumers of the m2e icons, that cannot adapt to SVG immediately, they can still copy the old icons in their bundle.

@Michael5601 can you please update this PR to remove the old icons for which replacements are added with this PR?

@Michael5601 Michael5601 force-pushed the org.eclipse.m2e.core.ui.SVGs branch from 583d58d to cd43fa3 Compare June 19, 2025 09:12
This commit adds SVGs for all icons in the bundle `org.eclipse.m2e.core.ui` except for the following as these do not exist as SVGs yet:

banner_lifecycleMappingPage.svg
banner_new_module.svg
banner_new_project.svg
banner_update_project.svg
m2eclipse48.svg

The corresponding PNGs will be deleted by this commit.
@Michael5601 Michael5601 force-pushed the org.eclipse.m2e.core.ui.SVGs branch from cd43fa3 to 84bf792 Compare June 19, 2025 09:20
@Michael5601
Copy link
Author

@Michael5601 can you please update this PR to remove the old icons for which replacements are added with this PR?

Done. :)

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.

3 participants