Looking up a symbol from plugin java code

16 views
Skip to first unread message

Vincent Latombe

unread,
Jun 13, 2022, 11:51:58 AM6/13/22
to Jenkins Dev
Hello,

We're reviewing usage of icons across our plugin codebase and adapting to the new symbols.

Context:

We have a use case where an icon is returned through a FormValidation object. FormValidation#respond currently takes arbitrary html as input so to replace an arbitrary icon with a symbol, we'd need access to IconSet#getSymbol which is currently @Restricted(NoExternalUse.class).

Would it make sense to relax it or should another way be explored for this use case?

Cheers,

Vincent

Vincent Latombe

unread,
Jun 14, 2022, 7:34:11 AM6/14/22
to Jenkins Dev
Reply all
Reply to author
Forward
0 new messages