eirikbakke commented on a change in pull request #3459:
URL: https://github.com/apache/netbeans/pull/3459#discussion_r786010725
##########
File path: platform/openide.util.ui/src/org/openide/util/ImageUtilities.java
##########
@@ -447,7 +471,22 @@ public static Image createDisabledImage(Image image) {
// Go through FilteredIcon to preserve scalable icons.
return icon2Image(createDisabledIcon(image2Icon(image)));
}
-
+
+ /**
+ * Attempts to find image's URL, if it is defined. Image Observer features
+ * are not used during this call, the property is assumed to be populated.
Note that
+ * the URL may be specific for a localization or branding, and may be the
same for
+ * bare and badged icons.
+ *
+ * @param image image to inspect
+ * @return image's URL or {@code null} if not defined.
+ * @since 9.24
+ */
+ public static URL findImageBaseURL(Image image) {
+ Object o = image.getProperty(PROPERTY_URL, null);
+ return o instanceof URL ? (URL)o : null;
Review comment:
Space after ")", if you're doing another round of changes...
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists