eirikbakke opened a new pull request, #8239: URL: https://github.com/apache/netbeans/pull/8239
The loadImage(URI) method was added in https://github.com/apache/netbeans/pull/8114 , as part of a broader consolidation of various icon loading methods. After seeing one [log message](https://github.com/apache/netbeans/pull/8235#issuecomment-2654649787), we see that both the `nbres:` and `nbresloc:` protocols should be handled, not just `nbresloc`. The difference is in whether a given file should be loaded with localization suffixes or not, per [this](https://netbeans.apache.org/wiki/main/netbeansdevelopperfaq/DevFaqUriVsUrl/) API documentation. The log message in question was as follows: `WARNING [org.openide.util.ImageUtilities]: loadImage(URI) called with unusual URI: nbres:/org/netbeans/modules/form/resources/palette/panel_16.png` This PR adds handling of the `nbres` case, and changes the handling of the `nbresloc` case to enable loading with localization. A quick test of the IDE saw no new problems, including in the Matisse form builder. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists